0 Replies Latest reply on May 9, 2005 10:01 AM by Tilman Rossmy

    xsd schema validation

    Tilman Rossmy Newbie

      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.setProperty("http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation", "/myhome/myschema.xsd");

      Now this never worked with the xercesImpl.jar from the JBOSS_HOME/lib/endorsed dir. Iused to workaround setting JBOSS_CLASSPATH=pathToMyXerces.jar on startup, that does not work with jboss-4.0.2 anymore. So maybe you guys can let me know how you do schema validation. Thanx