G
Greg Linwood
I'm wondering what is the best way of replacing a set of nodes with an
XmlDocument with another set of nodes? I'm limited to VS2003 (VB) for this
unfortunately..
I essentially need to replace a specific range of nodes with another range,
eg change this document:
<doc>
<node1>val1</node1>
<node2>val2</node2>
<node3>val3</node3>
<node4>val4</node4>
<node5>val5</node5>
<node6>val6</node6>
</doc>
to this:
<doc>
<node1>val1</node1>
<node2>val2</node2>
<node3>val30</node3>
<node3b>val3b</node3b>
<node4>val40</node4>
<node5>val5</node5>
<node6>val6</node6>
</doc>
I have the new range of XmlNodes (3, 3b & 4) in another XmlDocument but !'m
a little unsure about how to efficiently replace the current node range (3,
4) with the new range.
Any help greatly appreciated!
Regards,
Greg Linwood
SQL Server MVP
http://blogs.sqlserver.org.au/blogs/greg_linwood
Benchmark your query performance
http://www.SQLBenchmarkPro.com
XmlDocument with another set of nodes? I'm limited to VS2003 (VB) for this
unfortunately..
I essentially need to replace a specific range of nodes with another range,
eg change this document:
<doc>
<node1>val1</node1>
<node2>val2</node2>
<node3>val3</node3>
<node4>val4</node4>
<node5>val5</node5>
<node6>val6</node6>
</doc>
to this:
<doc>
<node1>val1</node1>
<node2>val2</node2>
<node3>val30</node3>
<node3b>val3b</node3b>
<node4>val40</node4>
<node5>val5</node5>
<node6>val6</node6>
</doc>
I have the new range of XmlNodes (3, 3b & 4) in another XmlDocument but !'m
a little unsure about how to efficiently replace the current node range (3,
4) with the new range.
Any help greatly appreciated!
Regards,
Greg Linwood
SQL Server MVP
http://blogs.sqlserver.org.au/blogs/greg_linwood
Benchmark your query performance
http://www.SQLBenchmarkPro.com