Altova Mailing List Archives


Re: XML Torture Test: Parsers Fail

From: Elliotte Rusty Harold <elharo@-------.---.--->
To: "Richard L. Goerwitz" <richard@----.---.-----.--->,xml-dev@--.--.--
Date: 4/7/1999 4:29:00 PM
At 9:37 AM -0400 4/7/99, Richard L. Goerwitz wrote:

>And in fact, one can make a good case for reading in and checking exter-
>nal entities even if they're not "used."  If you fail to do this, you can
>end up with a DTD that itself triggers errors when used with some docu-
>ments, but not others.  Worse yet, you can end up with a DTD that was
>thought to be valid, but which fails unexpectedly when used with a new
>document instance.
>

But it's not DTDs that are well-formed or valid. It's documents. Nowhere in
the XML specification is validity or well-formedness of a DTD, separate
from a  document, defined. And it's certainly true that whatever the DTD,
you can attach documents to it that are non-well-formed and/or invalid (and
which a parser will report is such). In other words, you can't validate a
DTD alone, so there's no point in worrying about what happens if you try.


+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@m... | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|        XML: Extensible Markup Language (IDG Books 1998)            |
|   http://www.amazon.com/exec/obidos/ISBN=0764531999/cafeaulaitA/   |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://sunsite.unc.edu/javafaq/ |
|  Read Cafe con Leche for XML News: http://sunsite.unc.edu/xml/     |
+----------------------------------+---------------------------------+



xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)

Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.