Schema validate from DOM Document without reparsing

J

Jean-Marc Vanel

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 :
http://jmvanel.free.fr/xsd/Counter.java
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,783
Latest member
RickeyDort

Latest Threads

Top