SAX: finalising org.sax.xml.Parser

James Clark jjc at jclark.com
Fri Feb 27 03:29:11 GMT 1998


David Megginson wrote:
> 
> Matthew Gertner writes:
> 
>  > 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
> 
> This comes back to the original problem, however: what if I want to
> include the external subset and external text entities but don't want
> to validate?  I'm not sure that the two should be tied together
> (AElfred, for example, does not validate, but it does use the DTD).

The following seem the reasonable combinations to me:

- Validate and process all external entities (if you're validating
you've got to process all external entities).

- Don't validate and process external DTD and parameter entitities
depending on the setting of standalone.

- Don't validate and process external DTD and parameter entities
(irrespective of the setting of standalone).

- Don't validate and don't process external DTD and parameter entities
(irrespective of the setting of standalone).

James

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




More information about the Xml-dev mailing list