Hi How do I in a simple way validate a Document that I have created.
I thought (as I designed my program) that this would work.. Document docOrg = DocumentHelper.createDocument(); ... <lots of text that creates a Document that is invalid when validated with a DTD> ... Document docValidated = DocumentHelper.parseText(docOrg.asXML()); <And here I would excpect a DocumentException but nothing. Only if I make missmatching elements in the docOrg does anything happen here. But leaving required elements out does not do anything.> So is there a easy way to validate a document from the inside?? /Christian Holmqvist ------------------------- Christian Holmqvist Posten Sverige AB Posten IT 105 00 Stockholm Besöksadress: Ekensbergsvägen 113 ,Solna Tel: 08 - 781 61 48 Mobil: 070 - 985 00 28 [EMAIL PROTECTED] http://www.posten.se ------------------------------------------------------- This SF.net email is sponsored by: ApacheCon, November 18-21 in Las Vegas (supported by COMDEX), the only Apache event to be fully supported by the ASF. http://www.apachecon.com _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user