[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Simple XML conformance

  • From: David Brownell <david-b@p...>
  • To: Peter Murray-Rust <peter@u...>
  • Date: Sun, 16 Jan 2000 21:59:09 -0800

Re: Simple XML conformance
Peter Murray-Rust wrote:
> Is there a definitive resource anywhere which explicitly states what
> behaviour can be expected from various types of parsers? I know it is
> inferable from the spec, 

There's a test matrix up at the front of the OASIS/NIST test report
that covers some of this, but most if it must be gotten from the spec.
That test report is big (571K) and an HTML rendition is at


If you don't want to load 571K, then just load sections 1 and 2; the
test matrix is in section 2.

(The source is an XML document ... you might find it interesting to
see how many of your parsers handle it correctly!  :-)

Luckly several of your examples don't call for "inference" from the
specification -- when the spec says something is optional, it means
it, so parsers objecting to missing XML declarations or (specifically)
DTDs are clearly in error.  (If there's no DTD, a validating parser
will certainly find an error in a document -- but it's not that the
DTD is missing, it's all the undeclared names in the document!)

That parser that interpreted <!-- %pe-refs-in-comments; --> really
would benefit from reading the recently published errata ... it fixed
some significant omissions from the original XML spec in that area.
Any parser implemented from just the spec would have that problem.
(I got suspicious when my parser couldn't parse the XML spec itself!) 

>	but I suspect that not all implementers have taken
> identical interpretations. I would ideally like to have a matrix of parsers
> against standard "correct" [not always "valid"] documents and see how many
> conform.

Again, look at that test matrix.  The whole OASIS/NIST suite basically
took a thousand or so documents and slotted them into the boxes in that
matrix ... the process of testing is mostly taking a parser and seeing
how it compares with the expected results.

- Dave

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/ or CD-ROM/ISBN 981-02-3594-1
Please note: New list subscriptions now closed in preparation for transfer to OASIS.


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.