You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by gr...@locus.apache.org on 2000/10/16 00:51:32 UTC
cvs commit: xml-cocoon/src/org/apache/cocoon/parser XercesParser.java
greenrd 00/10/15 15:51:32
Modified: src/org/apache/cocoon/parser XercesParser.java
Log:
Turned off Xerces schema checking so that validation does not require a schema
Revision Changes Path
1.11 +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.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- XercesParser.java 2000/07/21 23:39:55 1.10
+++ XercesParser.java 2000/10/15 22:51:31 1.11
@@ -1,4 +1,4 @@
-/*-- $Id: XercesParser.java,v 1.10 2000/07/21 23:39:55 stefano Exp $ --
+/*-- $Id: XercesParser.java,v 1.11 2000/10/15 22:51:31 greenrd 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.10 $ $Date: 2000/07/21 23:39:55 $
+ * @version $Revision: 1.11 $ $Date: 2000/10/15 22:51:31 $
*/
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://apache.org/xml/features/validation/schema", false);
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);