Namespace declarations are encoded as Namespace Info Items.
They have two properties:
[prefix] - the prefix whose binding this info item describes.
[namespace name] - the namespace name bound to this prefix.
These are not the namespace declarations.
Serialization of XML Infosets with namespaces is tricky.