Give this XML:
How do I define an XPath query that will obtain all the "rise"/"run" value pairs under "linedata" in the document?
Xpath "//rise" or Xpath "//run" will give me the rise and run points in the entire document but if I understand properly the order of the rise run pairs is not guaranteed. I need each rise to have it's matching run or my lines will all be screwed up.
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <linear xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <linedata> <line> <rise>253</rise> <run>446</run> </line> ... </close tags...>
Xpath "//rise" or Xpath "//run" will give me the rise and run points in the entire document but if I understand properly the order of the rise run pairs is not guaranteed. I need each rise to have it's matching run or my lines will all be screwed up.
Comment