user177800
user177800

Reputation:

Is there an example XML document that uses every feature of XML for testing?

Does anyone know where I can get a canonical XML document that uses every feature of the XML 1.0 specification that aren't mutually exclusive?

Not including various encoding flavors.

If I can get a single document encoded in UTF-8 that would be fine.

Upvotes: 3

Views: 250

Answers (1)

Michael Kay
Michael Kay

Reputation: 163458

It is not possible for one single document to use every feature: for example if a document uses UTF-16 encoding then it cannot also use UTF-8 encoding.

The W3C XML 1.0 Conformance Test Suite can be downloaded from http://www.w3.org/XML/Test/

Upvotes: 4

Related Questions