SAX: finalising org.sax.xml.Parser

Matthew Gertner matthewg at
Wed Feb 25 16:01:23 GMT 1998

>It should have the following meaning:
>- setValidate(false);
>  That the document/stream should be parsed for well-formedness.
>  This should also be the default if nothing was set with the setValidate()
>- setValidate(true);
>  That the document/stream should also be validated during parsing.

How about a 2x2 matrix?

With DTD
    setValidate(false) - checks for well-formedness, external subset is used
for entity and notation declarations, etc.
    setValidate(true) - full validation

Without DTD
    setValidate(false) - just checks for well-formedness
    setValidate(true) - throws an exception


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as:
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list