[jdom-interest] Newbie question re: validation

Alex Rosen arosen at novell.com
Mon Mar 10 08:11:32 PST 2003

The real solution is to get the latest CVS code (until there's a beta 9)
and use SAXBuilder. This will be faster and you can set validation
however you want.


>>> "Bradley S. Huffman" <hip at a.cs.okstate.edu> 3/9/2003 8:18:01 PM
Brian Ales writes:

> So for now I'm using a Xerces DOMparser into DOMBuil
> der, and that's working OK in terms of performance.  But I'm curious
about se
> tting validation - what's the difference between using the DOMBuilder
> ctor with the boolean parameter, and using setFeature() on the parser
> ath it?
> parser.setFeature("http://apache.org/xml/features/validation/schema",

The boolean flag for validation in DOMBuilder is deprecated in the
cvs code. It doesn't make sense to validate a already valid document.

To control your jdom-interest membership:

More information about the jdom-interest mailing list