XML Torture Test: Parsers Fail

John E. Simpson simpson at polaris.net
Mon Apr 5 18:49:36 BST 1999


At 10:57 AM 4/5/1999 -0500, Elliotte Rusty Harold wrote:
>At 8:23 AM -0700 4/5/99, Tim Bray wrote:
>>At 10:06 AM 4/5/99 -0500, you 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.

=============================================================
John E. Simpson          | It's no disgrace t'be poor, 
simpson at polaris.net      | but it might as well be.
                         |            -- "Kin" Hubbard

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