Hello,

since I'm using DOM4J  0.9, I can't use Xerces (1.4.1 or 1.4.2).

Part of my source code:

        SAXReader reader = new SAXReader("org.apache.xerces.parsers.SAXParser");
        reader.setValidation (true);
        reader.setDocumentFactory(myFactory);

        resultDoc = reader.read(url);


I get the following exception:

org.dom4j.DocumentException: Validation not supported for XMLReader: 
org.apache.xerces.parsers.SAXParser@5483cd Nested exception:
http://xml.org/sax/features/string-intern Nested exception: Validation not supported 
for XMLReader: org.apache.xerces.parsers.SAXParser@5483cd Nested exception:
 http://xml.org/sax/features/string-intern
     at org.dom4j.io.SAXReader.read(SAXReader.java:314)
     at org.dom4j.io.SAXReader.read(SAXReader.java:196)
     at ....
Nested exception: org.dom4j.DocumentException: Validation not supported for XMLReader: 
org.apache.xerces.parsers.SAXParser@5483cd Nested exception:
http://xml.org/sax/features/string-intern
     at org.dom4j.io.SAXReader.configureReader(SAXReader.java:511)
     at org.dom4j.io.SAXReader.read(SAXReader.java:293)
     at org.dom4j.io.SAXReader.read(SAXReader.java:196)
     at ...
Nested exception: org.xml.sax.SAXNotRecognizedException: 
http://xml.org/sax/features/string-intern
     at org.apache.xerces.framework.XMLParser.setFeature(XMLParser.java:1426)
     at org.apache.xerces.parsers.SAXParser.setFeature(SAXParser.java:578)
     at org.dom4j.io.SAXReader.configureReader(SAXReader.java:492)
     at org.dom4j.io.SAXReader.read(SAXReader.java:293)
     at org.dom4j.io.SAXReader.read(SAXReader.java:196)
     at ...

Any ideas ?

Stefan Graeber


_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to