You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ed...@apache.org on 2001/02/13 04:27:39 UTC
cvs commit: xml-xerces/java/src/org/apache/xerces/jaxp SAXParserImpl.java
edwingo 01/02/12 19:27:38
Modified: java/src/org/apache/xerces/jaxp Tag: xerces_j_2
SAXParserImpl.java
Log:
Fix "namespaceAware"
Revision Changes Path
No revision
No revision
1.1.4.3 +8 -7 xml-xerces/java/src/org/apache/xerces/jaxp/SAXParserImpl.java
Index: SAXParserImpl.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/jaxp/SAXParserImpl.java,v
retrieving revision 1.1.4.2
retrieving revision 1.1.4.3
diff -u -r1.1.4.2 -r1.1.4.3
--- SAXParserImpl.java 2001/02/02 23:06:52 1.1.4.2
+++ SAXParserImpl.java 2001/02/13 03:27:37 1.1.4.3
@@ -1,5 +1,5 @@
/*
- * $Id: SAXParserImpl.java,v 1.1.4.2 2001/02/02 23:06:52 edwingo Exp $
+ * $Id: SAXParserImpl.java,v 1.1.4.3 2001/02/13 03:27:37 edwingo Exp $
*
* The Apache Software License, Version 1.1
*
@@ -78,7 +78,7 @@
/**
* @author Rajiv Mordani
* @author Edwin Goei
- * @version $Revision: 1.1.4.2 $
+ * @version $Revision: 1.1.4.3 $
*/
/**
@@ -120,11 +120,12 @@
// Allow SAX parser to use a different ErrorHandler if it wants to
xmlReader.setFeature(validation, validating);
- if (spf.isNamespaceAware()) {
- namespaceAware = true;
- // XXX default value of namespaceAware conflicts with SAX2
- // namespaces feature so do nothing for now
- }
+ // "namespaceAware" == SAX Namespaces feature
+ // Note: there is a compatibility problem here with default values:
+ // JAXP default is false while SAX 2 default is true!
+ namespaceAware = spf.isNamespaceAware();
+ String namespaces = "http://xml.org/sax/features/namespaces";
+ xmlReader.setFeature(namespaces, namespaceAware);
setFeatures(features);
}