Extract field from xml file with weather

kidlj

New Member
Have an XML file with struct like \[code\]<codes> <condition> <code>395</code> <description>Moderate or heavy snow in area with thunder</description> <day_icon>wsymbol_0012_heavy_snow_showers</day_icon> <night_icon>wsymbol_0028_heavy_snow_showers_night</night_icon> </condition> <condition> <code>392</code> <description>Patchy light snow in area with thunder</description> <day_icon>wsymbol_0016_thundery_showers</day_icon> <night_icon>wsymbol_0032_thundery_showers_night</night_icon> </condition></codes>\[/code\]How to write function, thats will response description only by codeas a func(395) return @Moderate or heavy snow in area with thunder@
 
Back
Top