Bugs item #1064896, was opened at 2004-11-11 16:53 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=116035&aid=1064896&group_id=16035
Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: xml scheama documentation bug Initial Comment: This url: http://www.dom4j.org/faq.html#how-validate talks about using xml scheama validation, but does'nt tell you that you need to use this code for xml scheama validation: reader.setFeature("http://apache.org/xml/features/validation/schema", true); Atleast, thats what I used for it, with xerces. In general it seemed way to hard to get xml scheama validation working. I had to figure out what libraries to use, and figure out that wierd command above, and then what special xml incanation to use to get the scheama to be loaded. Also the error you get if you don't have that magic line above is quite un-helpful: org.dom4j.DocumentException: Error on line 3 of document : Document is invalid: no grammar found. Nested exception: Document is invalid: no grammar found. If you have a place for a mini tutorial contact me and I'll gladly contribute. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2004-11-13 12:16 Message: Logged In: NO the true in the constructor does the same (sets validation on). Check out the MSV-version as well - it's very flexible and clean. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2004-11-11 16:54 Message: Logged In: NO I posted that bug, but I was'nt logged in... [EMAIL PROTECTED] ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=116035&aid=1064896&group_id=16035 ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ dom4j-dev mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-dev