Keimond
4 years agoNeophyte
xml and xpaths
Hey all I'm having troubles figuring this out.. so I have set up a datasource that pulls the xml directly from a bind statistics web server and that's working but I can't get the values to show up ...
And of course after I post this I decide to try one more thing and it works..
/statistics/server/counters[@type="qtype"]//counter[1]/text()
I understand why this is working but what if I don't always know if for example the "name=A" is going to be the first element ? Which led me to try
/statistics/server/counters[@type="qtype"]//counter[@name="A"]/text()
Which does seem to work, so back to building all of the datapoints !