Schema validate from DOM Document without reparsing

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jean-Marc Vanel

    Schema validate from DOM Document without reparsing

    Hello

    I want to validate against an XML Schema from a DOM Document object
    without reparsing. If the XML Schema is also from a DOM Document it
    would be even better. I work with Java.

    It seems that Xerces validates while it parses, so a solution would be
    to generate SAX events from my DOM Document.
    But I could'nt find a hint in the Xerces documentation.

    PS I allready have the recipy to validate from a file or URL by
    specifying the Schema and ignore the schemaLocation in the document :

Working...