I am trying to get the parser dom4j is using to validate an XML document with an XML schema. The parser is Xerces 2.6.2 (result is the same with it on the classpath or with Java 5 on its own).
If I do this: SAXReader reader = new SAXReader(true); reader.setFeature("http://apache.org/xml/features/validation/schema", true); reader.setErrorHandler( ...); etc it validates fine, and reports any errors. If I do this: SAXReader reader = new SAXReader(true); reader.setProperty("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema"); reader.setErrorHandler( ... ); etc it doesn't report any errors. If I set that property directly on JAXP, or via setProperty on jdom or the commons-digester, then Xerces correctly reports the errors. If I construct the parser myself from JAXP, set that property on it, and pass it to dom4j, it also reports errors. Has anyone else experienced this ? Could someone point me in the right direction ? Thanks in advance, Graham King. PS: The reason I would like to get the second string working is that it is parser independent, whereas the first string will only work with Xerces. ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 _______________________________________________ dom4j-dev mailing list dom4j-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-dev