When I am building an XmlWriter I can use the following to create the root node.
xw.WriteStartElement(
"svg", "http://www.w3.org/2000/svg");How can I add another namespace reference to the root node eg
xmlns:xlink=http://www.w3.org/1999/xlink
Alternatively, is there xsl syntax that could do this via a transform
Thanks, Tad

how to add more than one namespace reference to root?
stryjek4
See: http://windowssdk.msdn.microsoft.com/en-us/library/73z46xs1.aspx
xw.WriteAttributeString("xmlns","xlink", null,"http://www.w3.org/1999/xlink");
nate-d-o-double-g
Martin and Sergey,
Thank you both so much for helping me out.
Tad
game_boy
You can write out the namespace declaration as an attribute as in the following example:
const string svgNS = "http://www.w3.org/2000/svg"; const string xlinkNS = "http://www.w3.org/1999/xlink"; const string xmlnsNS = "http://www.w3.org/2000/xmlns/";xmlWriter.WriteStartElement("svg", svgNS);
xmlWriter.WriteAttributeString("xmlns", "xlink", xmlnsNS, xlinkNS);
xmlWriter.WriteEndElement();