Maybe somebody can tell me what should be the preferred way to validate xml against a xsd schema, which is stored locally. I'm using dom4j and xerces like this:
SaxReader reader; reader = new SAXReader(); reader.setValidation(true); reader.setProperty("http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation", "/myhome/myschema.xsd");