By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,579 Members | 1,773 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,579 IT Pros & Developers. It's quick & easy.

VB.Net question on using the XML DOM (xmldocument class)

P: n/a
I am about to go bonkers trying to figure this out -- So here goes

Currently I am building an xml document and have no problem building the
document with one namespace designation using the DOM.

Here is a snip-it of what I have

<vl:VNETList xmlns:vl="http://www.1234.com/VNET/List">
<Template>
<ID>Template_FFF4887BC8B4E98F85256EE60061576A</ID>

I can’t figure out how to add a secondary xmlns reference that will look
like this.

<vl:VNETList xmlns:vl="http://www.1234.com/VNET/List"
xmlns="http://www.5678.com/VNET/eiwm">
<Template>
<ID>Template_0A0AD3A027803E7485256DC00066D831</ID>

I am using the following code to create my root node
Dim objXmlNodeRoot As XmlNode = xdoc.CreateElement("vl", "VNETList",
"http://www.1234.com/VNET/List")

Nov 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.