> I can't figure out how to add a secondary xmlns reference that will look
> like this.
[quoted text clipped - 4 lines]
> Dim objXmlNodeRoot As XmlNode = xdoc.CreateElement("vl", "VNETList",
> "http://www.1234.com/VNET/List")
Dim objXmlNsAttr As XmlAttribute = xdoc.CreateAttribute( _
"xmlns", "", "http://www.w3.org/2000/xmlns/" )
objXmlNodeRoot.Attributes.Append( objXmlNsAttr)
Derek Harmon
SuperDrone - 04 May 2005 16:21 GMT
Using your code snipit I get the following error
An unhandled exception of type 'System.ArgumentException' occurred in
system.xml.dll
Additional information: The attribute local name cannot be empty.
SuperDrone - 04 May 2005 16:41 GMT
Ok I figured it out and your snip-it gave me a nudge in the correct direction.
Dim objXmlNsAttr As XmlAttribute = xdoc.CreateAttribute("xmlns")
objXmlNsAttr.Value = "http://www.1234.com/VNET/eiwm"
Thanks for the help =-)