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 Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click _______________________________________________ dom4j-user mailing list dom4j-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-user