How to create a path to xml element in C#

Lypoteompathe

New Member
I want to create a routing(path) to xml element and assign it to a variable so i can access itfast in the future.The element, which is a child of other elements, can change its position in the documentso i cant use methods like first child or indexing that rely on position.The path to the element will always stay constant and there is no other path like it.If we look at a short example so i want a path to level4 value(header4) so i can modify it.\[code\] <level1> <level2> <level3>header3</level3> <level4>header4</level4> <level3>header31</level31> </level2> <level2> <level3>nnn</level3> <level3>nnnnn</level31> </level2></level1>\[/code\]
 
Back
Top