You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by fe...@apache.org on 2002/09/12 03:23:17 UTC
cvs commit: xml-xindice/java/src/org/apache/xindice/client/xmldb/resources XMLResourceImpl.java
fern 2002/09/11 18:23:16
Modified: java/src/org/apache/xindice/client/xmldb/resources
XMLResourceImpl.java
Log:
bug fix, the saxParser (used for getContentAsSAX) was not namespaceaware
Revision Changes Path
1.5 +11 -10 xml-xindice/java/src/org/apache/xindice/client/xmldb/resources/XMLResourceImpl.java
Index: XMLResourceImpl.java
===================================================================
RCS file: /home/cvs/xml-xindice/java/src/org/apache/xindice/client/xmldb/resources/XMLResourceImpl.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- XMLResourceImpl.java 12 Aug 2002 03:02:46 -0000 1.4
+++ XMLResourceImpl.java 12 Sep 2002 01:23:16 -0000 1.5
@@ -75,15 +75,16 @@
import java.io.*;
/**
- * XMLResourceImpl provides an implementation to handle XML resources and
- * convert easily between Text, DOM or SAX presentations.
- * <p />
- *
- */
-public class XMLResourceImpl
- implements org.xmldb.api.modules.XMLResource {
-
- private static SAXParserFactory saxFactory = SAXParserFactory.newInstance();
+ * XMLResourceImpl provides an implementation to handle XML resources
+ * and convert easily between Text, DOM or SAX presentations.
+ **/
+public class XMLResourceImpl implements org.xmldb.api.modules.XMLResource {
+
+ private static SAXParserFactory saxFactory;
+ static {
+ saxFactory = SAXParserFactory.newInstance();
+ saxFactory.setNamespaceAware( true );
+ }
protected String id = null;
protected String documentId = null;