Instead of setting the external schema property, you could use the following (xerces):
SAXReader reader = new SAXReader( true); reader.setFeature( "http://apache.org/xml/features/validation/schema", true); See: <http://xml.apache.org/xerces2-j/features.html#validation.schema> This should validate your xml document against the XML Schema or DTD defined in your XML document. Regards, Edwin ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ dom4j-user mailing list dom4j-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-user