[jdom-interest] Newbie question re: validation

Brian Ales bka202 at yahoo.com
Sun Mar 9 15:42:50 PST 2003


I'm somewhat new with JDOM (and XML for that matter), and like other people, I've also had to forget about using SAX streams into JDOM because of this stringbuffer/memory issue.  So for now I'm using a Xerces DOMparser into DOMBuilder, and that's working OK in terms of performance.  But I'm curious about setting validation - what's the difference between using the DOMBuilder constructor with the boolean parameter, and using setFeature() on the parser underneath it?

parser.setFeature("http://apache.org/xml/features/validation/schema", true);

I guess this just specifies schema versus dtd, so you need both?

Thanks in advance, 

Brian Ales

Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, and more
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20030309/0ec9a395/attachment.htm

More information about the jdom-interest mailing list