When writing/reading XML in vbScript, everything was easy because I could refer to nodes like an array (ex: main_node[0].sub_node[4]). I am learning C#, and am having problems with XML. All books and resources show me how to write a full file. What if I want to change the value of one element? Let's say I have the following XML file:
<person>
<name>Khelder</name>
<age>21</age>
</person>
<person>
<name>Redlehk</name>
<age>25</age>
</person>
Given the program knows the name "Redlehk", how would you go about reading in his age, and then writing back to the XML file a new age. If anyone can show me how this is done, or point me to a resource, I would greatly appreciate it.
Thanks,
Khelder



LinkBack URL
About LinkBacks


