[jdom-interest] Validation of a JDOMtree (already loaded inmemory) with XSD schema

Tatu Saloranta cowtowncoder at yahoo.com
Wed Oct 8 10:53:53 PDT 2008

--- On Wed, 10/8/08, katja.radelicki at colruyt.be <katja.radelicki at colruyt.be> 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 +-


More information about the jdom-interest mailing list