Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New to XML DOM,and .NET, Need a good push/kick Please :)

Status
Not open for further replies.

Torx

Programmer
Apr 23, 2003
4
US
Torx (Programmer) Apr 23, 2003
Can anyone get me started on a project I'm working on? The Online docs aren't helping me much.

My project is to write a visual basic app that will take any XML file (no XSLT or CSS) find a record, clone the record, change the id attribute and add it to the doc as additional node.

example
.....................................
....
- <car id=&quot;0&quot;>
<col id=&quot;Manufacturor&quot;>Ford</col>
<col id=&quot;color&quot;>Blue</col>
</car>
....
......................................
Needs to become
......................................
....
- <car id=&quot;0&quot;>
<col id=&quot;Manufacturor&quot;>Ford</col>
<col id=&quot;color&quot;>Blue</col>
</car>
- <car id=&quot;1&quot;>
<col id=&quot;Manufacturor&quot;>Ford</col>
<col id=&quot;color&quot;>Blue</col>
</car>
....
......................................

Please, Please, Please, Can someone show me some sample code that could do something like this? I am new to XML and .NET so I don't have much of a frame of reference to work from. I have been working with DOM, XMLNodeElements,XMLAttributes, and XMLNodes but all of the object/element/attribute references are kicking my arse.

I have tried to eat my mouse twice! Please end this newb's suffering :).

Thanks for any and all help :)
 
Best advice for you old boy is to try a different forum, you want VB advice, not VBA.

 
My bad :).

Thanks for pointing that out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top