Hi,
I want to add a namespace prefix to the root node of an object I am
serializing to XML.
I have been reading though this article:
http://msdn2.microsoft.com/en-gb/lib...attribute.aspx
I get namespace prefixes in the document, but not on the root node.
Specifically, the serializer does not work as described in the last
paragraph:
(from http://msdn2.microsoft.com/en-gb/lib...attribute.aspx)
" For example, in the following XML document, only the prefix pair
"cal" is captured, but not the "x" prefix. To get that data, add a
member with the XmlNamespaceDeclarationsAttribute to the class that
represents the root element."
If you look through the sample, they already use the
XmlNamespaceDeclarationsAttribute and there is no way to associate the
instance of the XmlNamespaceDeclarationsAttribute with the root node.
Is this a bug or a feature?
Thanks -Scott