Link to home
Start Free TrialLog in
Avatar of vinny45
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>
Avatar of broadbent
broadbent
Flag of United Kingdom of Great Britain and Northern Ireland image

Frankly - parse it as a text file - it is much quicker than XML
ASKER CERTIFIED SOLUTION
Avatar of Carl Tawn
Carl Tawn
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vinny45
vinny45

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.