[jdom-interest] DOMBuilder validation

philip.nelson at omniresources.com philip.nelson at omniresources.com
Mon Jun 12 06:14:02 PDT 2000

> The org.jdom.input.DOMBuilder class contains a couple of constructors
> that claim to turn on validation. In particular,
> public DOMBuilder(boolean validate)
> public DOMBuilder(String adapterClass, boolean validate)
> However, as near as I can tell the build() method won't 
> actually try to
> validate anything. Until such time as it does, I suggest 
> deleting these
> two constructors. 

hmmm... I don't see the problem though I have only tested with Xerces and
XML4J.  I reran my samples with the B4 build (with line termination
problems) and it still catches validation problems.  In my test case, the
XML doesn't match my DTD.  What were you trying to catch.

More information about the jdom-interest mailing list