Can someone help me get the an elemnt by id?
For example if I have some thing like:
<abc>
<x>tghgh</x>
<y>fgghj</y>
<z>dghj</z>
</abc>
If I say getelement(3) it should return me element.name as Z and element.value as dghj.
Is there already a function which I am missing or is there a way I can code this?
Note the counting starts at 0, so it’s ElementAt(2).
Finding the element with tag
zis easier and faster:In both cases you have
target.Nameandtarget.Value