vinny45
asked on
load xml change and save
how can i load an xml file, change some of its values and save it in vb.net 1.1. The xml has to be something like this:
How do i loop through each childnode and change the age?
<parentNode>
<childNodes>
<childNode>
<age>10</age>
</childNode>
<childNode>
<age>11</age>
</childNode>
<childNode>
<age>12</age>
</childNode>
<childNodes>
</parentNode>
How do i loop through each childnode and change the age?
<parentNode>
<childNodes>
<childNode>
<age>10</age>
</childNode>
<childNode>
<age>11</age>
</childNode>
<childNode>
<age>12</age>
</childNode>
<childNodes>
</parentNode>
Frankly - parse it as a text file - it is much quicker than XML
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
carl tawn - will this lock the file while i navigate. Multiple users will be grabbing this file and saving it in another name
It shouldn't do. You're not holding open the file, you simply load its contents into memory, so the file should be free for other people to read.