RE: Validation of a JDOMtree (already loaded inmemory) with XSD schema
Tatu Saloranta <[email protected]>
| Newsgroups | gmane.comp.java.jdom.general |
|---|---|
| Message-ID | <[email protected]> |
--- On Wed, 10/8/08, [email protected] <[email protected]> wrote: > But I was thinking: is it also possible to validate when > building the JDOM Tree, so you don't have to make the > whole tree when some element is already wrong in the first > part? Yes, and you do it the same way too: JDOM is not a parser, and relies on underlying parser. Thus you could pass SAX event stream to validator and builder, hence validating while building. -+ Tatu +- _______________________________________________ To control your jdom-interest membership: http://www.jdom.org/mailman/options/jdom-interest/[email protected]