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 XmlNamespaceDec larationsAttrib ute to the class that
represents the root element."
If you look through the sample, they already use the
XmlNamespaceDec larationsAttrib ute and there is no way to associate the
instance of the XmlNamespaceDec larationsAttrib ute with the root node.
Is this a bug or a feature?
Thanks -Scott