I am trying to obtain text from a web service which returns:
<current><city id="2783308" name="Zedelgem"><coord lon="3.14" lat="51.14"></coord><country>BE</country><sun rise="2016-06-06T03:34:06" set="2016-06-06T19:58:56"></sun></city><temperature value="291.81" min="286.15" max="297.04" unit="kelvin"></temperature><humidity value="82" unit="%"></humidity><pressure value="1022" unit="hPa"></pressure><wind><speed value="6.2" name="Moderate breeze"></speed><gusts></gusts><direction value="20" code="NNE" name="North-northeast"></direction></wind><clouds value="20" name="few clouds"></clouds><visibility></visibility><precipitation mode="no"></precipitation><weather number="801" value="licht bewolkt" icon="02d"></weather><lastupdate value="2016-06-06T11:13:48"></lastupdate></current> |
I am able to get the weather number by requesting command <weather number ="\v. I would like to obtain the value but don't know how to tackle this. I am noticing 2 issues:
* value is occuring multiple times in the XML text
* The value is a text and I am only succeeding in getting values from this XML by using the "Virtual HTTP input"
How do I solve this?
Thanks Pieter
Kommentar