[jdom-interest] Newbie question re: validation

Bradley S. Huffman hip at a.cs.okstate.edu
Sun Mar 9 17:18:01 PST 2003


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 constru
> ctor with the boolean parameter, and using setFeature() on the parser underne
> ath it?
> 
> parser.setFeature("http://apache.org/xml/features/validation/schema", true);

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

Brad



More information about the jdom-interest mailing list