[jdom-interest] Validation in SAX/DOMBuilders

Brett McLaughlin brett at newInstance.com
Wed Mar 21 12:29:43 PST 2001

So when it comes to validation, do you (yes, you, reader...) consider DTD
validation and schema validation to be separate things, turned on
separately? For example, when you invoke this method:

public Document build(boolean validate);

in SAXBuilder or DOMBuilder, and send it "true", do you expect that to
validate both DTDs referenced AND schemas referenced? Just one? Should it
stay as is, or should it be:

public void validateDTDs(boolean validateDTDs);
public void validateSchemas(boolean validateSchemas);
public Document build();

I don't like, fyi,

public Document build(boolean validateDTDs, boolean validateSchemas);

too confusing...

so what do people think?


More information about the jdom-interest mailing list