Re-naming a node in an XML file
Hello everyone..
Does anyone know how to re-name an XML node in VB? I am using MSXML3 and I need to take in an XML document with several child nodes, make some changes, then re-name the documents first-level child nodes to send back to the requestor.
For example:
Code:
<documentNode>
<dChild1IN>
<childData1>data</child1Data1>
......
</dchild1IN>
<dchild2IN>
<childData1>data</childData1>
......
</dchild2IN>
</documentNode>
would be changed to:
Code:
<documentNode>
<dChild1OUT>
<childData1>data</child1Data1>
......
</dchild1OUT>
<dchild2OUT>
<childData1>data</childData1>
......
</dchild2OUT>
</documentNode>
Note that these nodes that are being re-named may also be namespaced, and I need the namespaces to carry over as well.
Thanks in advance....