how do you serialize?
If you are using .NET's XML serialization, you can use
XmlSerializerNamespaces ns = new XmlSerializerNamespaces();
ns.Add( "ns1", "urn:WhateverYouLike" );
to specify a prefix and map it to a particular XML namespace.
Then serialize with something like
XmlSerializer s1 = new XmlSerializer(typeof(TheType));
s1.Serialize(TheTextWriter, TheInstance, ns);
Does this do what you want?
-D
"MattBell" <Ma******@discussions.microsoft.com> wrote in message
news:55**********************************@microsof t.com...
I have an object which serializes to XML. It's root node references the
namespace I'm working with, but I would like to preferace the root node
with
a namespace reference (ie ns1:RootNode) is there a way to do this with
XmlAttributes?