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="0">
<col id="Manufacturor">Ford</col>
<col id="color">Blue</col>
</car>
....
......................................
Needs to become
......................................
....
- <car id="0">
<col id="Manufacturor">Ford</col>
<col id="color">Blue</col>
</car>
- <car id="1">
<col id="Manufacturor">Ford</col>
<col id="color">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
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="0">
<col id="Manufacturor">Ford</col>
<col id="color">Blue</col>
</car>
....
......................................
Needs to become
......................................
....
- <car id="0">
<col id="Manufacturor">Ford</col>
<col id="color">Blue</col>
</car>
- <car id="1">
<col id="Manufacturor">Ford</col>
<col id="color">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