w3schools xsd example won't work with dom4j. How do I use dom4j to validate xml using xsds?
- by HappyEngineer
I am trying to use dom4j to validate the xml at http://www.w3schools.com/Schema/schema_example.asp using the xsd from that same page. It fails with the following error:
org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'shiporder'.
I'm using the following code:
SAXReader reader = new SAXReader();…