XML Torture Test: Parsers Fail

David Megginson david at megginson.com
Mon Apr 5 19:47:58 BST 1999


John E. Simpson writes:

 > At 10:57 AM 4/5/1999 -0500, 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/examples/players/index.xml
 > >>
 > >>Doesn't seem to be there. -Tim
 > >
 > >Oops. That should be
 > >
 > >http://metalab.unc.edu/xml/examples/players/index.xml
 > 
 > Elliotte, I just tried it at the U. of Edinburgh's Language Technology
 > on-line validator, at:
 > 	http://www.cogsci.ed.ac.uk/~richard/xml-check.html
 > (Based on Richard Tobin's RXP parser.)
 > 
 > This parser reports the torture test as well-formed when operating in
 > non-validating mode; when validating, it issues only warnings, to the
 > effect that the content model of the PLAYER element is non-deterministic,
 > e.g. "After element GS there are multiple choices when the next element is
 > S." It doesn't seem to be bothered by the entities.

Neither AElfred nor XP reports any errors for this document either.
Perhaps the problems that Elliotte exposes are the exception rather
than the rule (I do not have Lark on my system right now, or I'd check 
it as well).


All the best,


David

-- 
David Megginson                 david at megginson.com
           http://www.megginson.com/

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