XML Torture Test: Parsers Fail

David Brownell db at eng.sun.com
Mon Apr 5 20:32:56 BST 1999


For some reason I've seen three followups to this note, but
not the original note ...

Elliotte Rusty Harold wrote:
> 
> >>Without intending to do so, I have devised an XML document that exposes
> >>many problems in almost all XML validating parsers and non-validating
> >>parsers that resolve external entity references.  You will find this
> >>torture test at
> 
> http://metalab.unc.edu/xml/examples/players/index.xml

I ran Sun's parsers and they warned of a variety of redefined
entities ... for example, "&AaronSmall;" defined in two
files, both "athletics.dtd" and "diamondbacks.dtd".  (See
the list below.)

I did notice that this relies on correct interpretation of
relative URIs, which I know have been handled incorrectly
by at least two other "validating" parsers (perhaps not in
their current releases though).

- Dave


** Warning, line 1, uri
http://metalab.unc.edu/xml/examples/players/diamondbacks.dtd
   Using original entity definition for "&AaronSmall;".
** Warning, line 21, uri
http://metalab.unc.edu/xml/examples/players/indians.dtd
   Using original entity definition for "&JimPoole;".
** Warning, line 16, uri
http://metalab.unc.edu/xml/examples/players/mariners.dtd
   Using original entity definition for "&GlenallenHill;".
** Warning, line 1, uri
http://metalab.unc.edu/xml/examples/players/marlins.dtd
   Using original entity definition for "&AlexGonzalez;".
** Warning, line 20, uri
http://metalab.unc.edu/xml/examples/players/padres.dtd
   Using original entity definition for "&KevinBrown;".
** Warning, line 11, uri
http://metalab.unc.edu/xml/examples/players/pirates.dtd
   Using original entity definition for "&FreddyGarcia;".
** Warning, line 9, uri http://metalab.unc.edu/xml/examples/players/reds.dtd
   Using original entity definition for "&DennisReyes;".
** Warning, line 2, uri
http://metalab.unc.edu/xml/examples/players/rockies.dtd
   Using original entity definition for "&BobbyJones;".
** Warning, line 33, uri
http://metalab.unc.edu/xml/examples/players/tigers.dtd
   Using original entity definition for "&ScottSanders;".
** Warning, line 22, uri
http://metalab.unc.edu/xml/examples/players/whitesox.dtd
   Using original entity definition for "&MarkJohnson;".

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/ and on CD-ROM/ISBN 981-02-3594-1
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