When namespace handling is enabled, Expat considers the following document invalid:
The error is "Unbound prefix", referring to the "xml:" prefix. However, according the W3C spec, it's not necessary to declare that particular prefix. I'm looking at the following document:
Under chapter 3, subheading "Namespace constraint: Reserved Prefixes and Namespace Names"
This is the section I'm reading:
The prefix xml is by definition bound to the namespace name http://www.w3.org/XML/1998/namespace. ****It MAY, but need not, be declared****, and MUST NOT be bound to any other namespace name. Other prefixes MUST NOT be bound to this namespace name, and it MUST NOT be declared as the default namespace.