Andy Bierman writes:
Your example obviously shows it doesn't matter where the xmlns
directives are in the PDU. All that matters is normal XML processing
rules are followed to determine the requested namepsace.
Yup, the text is an encoding of the infoset, and there are
multiple ways to encode it.
This does not work.
Although extremely stupid, empty strings and whitespace-only strings
are valid namespace names. (I wonder how many agents handle an empty
NS string correctly?)
You sure? In section 5.2 of:
http://www.w3.org/TR/1999/REC-xml-names-19990114/
it says:
The default namespace can be set to the empty string. This has
the same effect, within the scope of the declaration, of there
being no default namespace.
There's an example also.