How to turn xml into useable information?

netchicken

Active Member
Licensed User
Longtime User
I have just joined World Weather Online - Global weather forecast and weather content provider and obtained an API key which gives me an xml feed based on lat and lon.

How do I go about turning that into something that can be used in B4A?

This is what the output looks like
B4X:
<?xml version="1.0" encoding="UTF-8"?><data><request><type>LatLon</type><query>Lat -43.55 and Lon 172.61</query></request><current_condition><observation_time>02:47 AM</observation_time><temp_C>18</temp_C><temp_F>64</temp_F><weatherCode>113</weatherCode><weatherIconUrl><![CDATA[http://www.worldweatheronline.com/images/wsymbols01_png_64/wsymbol_0001_sunny.png]]></weatherIconUrl><weatherDesc><![CDATA[Sunny]]></weatherDesc><windspeedMiles>16</windspeedMiles><windspeedKmph>26</windspeedKmph><winddirDegree>80</winddirDegree><winddir16Point>E</winddir16Point><precipMM>0.0</precipMM><humidity>64</humidity><visibility>10</visibility><pressure>1008</pressure><cloudcover>0</cloudcover></current_condition><weather><date>2011-11-27</date><tempMaxC>21</tempMaxC><tempMaxF>70</tempMaxF><tempMinC>6</tempMinC><tempMinF>43</tempMinF><windspeedMiles>15</windspeedMiles><windspeedKmph>24</windspeedKmph><winddirection>ENE</winddirection><winddir16Point>ENE</winddir16Point><winddirDegree>58</winddirDegree><weatherCode>116</weatherCode><weatherIconUrl><![CDATA[http://www.worldweatheronline.com/images/wsymbols01_png_64/wsymbol_0002_sunny_intervals.png]]></weatherIconUrl><weatherDesc><![CDATA[Partly Cloudy ]]></weatherDesc><precipMM>0.0</precipMM></weather><weather><date>2011-11-28</date><tempMaxC>21</tempMaxC><tempMaxF>71</tempMaxF><tempMinC>10</tempMinC><tempMinF>50</tempMinF><windspeedMiles>26</windspeedMiles><windspeedKmph>41</windspeedKmph><winddirection>NW</winddirection><winddir16Point>NW</winddir16Point><winddirDegree>306</winddirDegree><weatherCode>113</weatherCode><weatherIconUrl><![CDATA[http://www.worldweatheronline.com/images/wsymbols01_png_64/wsymbol_0001_sunny.png]]></weatherIconUrl><weatherDesc><![CDATA[Sunny]]></weatherDesc><precipMM>1.2</precipMM></weather></data>

I am sure there is a library / instructions etc somewhere, just don't know what to look for

Cheers
 
Top