[jdom-interest] Validation in SAX/DOMBuilders

Matthew MacKenzie matt at xmlglobal.com
Wed Mar 21 15:03:46 PST 2001


My preference is to explicitly call for validation, e.g.

validateDtds()
validateSchemas()

Cheers,

-Matt

----- Original Message -----
From: "Brett McLaughlin" <brett at newInstance.com>
To: <jdom-interest at jdom.org>
Sent: Wednesday, March 21, 2001 12:29 PM
Subject: [jdom-interest] Validation in SAX/DOMBuilders


> 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?
>
> -Brett
>
> _______________________________________________
> To control your jdom-interest membership:
>
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com
>




More information about the jdom-interest mailing list