You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by st...@locus.apache.org on 2000/05/18 23:51:40 UTC
cvs commit: xml-cocoon/src/org/apache/cocoon/parser XercesParser.java
stefano 00/05/18 14:51:39
Modified: src/org/apache/cocoon/parser XercesParser.java
Log:
turned namespaces on (so that you don't require recompilation to play with processors that need namespaces, this doesn't hurt anyway AFAIK)
Revision Changes Path
1.9 +3 -2 xml-cocoon/src/org/apache/cocoon/parser/XercesParser.java
Index: XercesParser.java
===================================================================
RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/parser/XercesParser.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- XercesParser.java 2000/04/20 22:29:42 1.8
+++ XercesParser.java 2000/05/18 21:51:37 1.9
@@ -1,4 +1,4 @@
-/*-- $Id: XercesParser.java,v 1.8 2000/04/20 22:29:42 stefano Exp $ --
+/*-- $Id: XercesParser.java,v 1.9 2000/05/18 21:51:37 stefano Exp $ --
============================================================================
The Apache Software License, Version 1.1
@@ -63,7 +63,7 @@
* This class implements an XML parser using the Apache Xerces XML parser.
*
* @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
- * @version $Revision: 1.8 $ $Date: 2000/04/20 22:29:42 $
+ * @version $Revision: 1.9 $ $Date: 2000/05/18 21:51:37 $
*/
public class XercesParser extends AbstractParser implements Status {
@@ -75,6 +75,7 @@
DOMParser parser = new DOMParser();
parser.setErrorHandler(this);
parser.setFeature("http://xml.org/sax/features/validation", validate);
+ parser.setFeature("http://xml.org/sax/features/namespaces", true);
parser.setFeature("http://apache.org/xml/features/validation/warn-on-duplicate-attdef", validate);
parser.setFeature("http://apache.org/xml/features/validation/warn-on-undeclared-elemdef", validate);
parser.setFeature("http://apache.org/xml/features/dom/create-entity-ref-nodes", false);