Well the best is usually with the DOM, something like this:
var dist_element = document.getElementsByTagName("distance").child[1];
The thing there is, if you have several elements with the tag distance, you’ll get an array. So you will need to iterate over every element.
Sorry I don’t go over all the details, but exact implementation depends on your language of choice. Which language are you using?
0
solved How to xml parsing [closed]