Im creating a weather skin based on the this RSS: http://xml.weather.com/weather/local/PLXX0049?cc=*&unit=m
My parse code is:
Code: Select all
Url=http://xml.weather.com/weather/local/#dest#?cc=*&unit=#SCALE#
RegExp="(?siU)<weather ver="(.*).0">.*<head>.*<locale>.*</locale>.*<form>.*</form>.*<ut>.*</ut>.*<ud>.*</ud>.*<us>.*</us>.*<up>.*</up>.*<ur>.*</ur>.*</head>.*<loc id="(.*)">.*<dnam>(.*)</dnam>.*<tm>.*</tm>.*<lat>(.*)</lat>.*<lon>(.*)</lon>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<zone>.*</zone>.*</loc>.*<cc>.*<lsup>.*</lsup>.*<obst>.*</obst>.*<tmp>(.*)</tmp>.*<flik>.*</flik>.*<t>.*</t>.*<icon>(.*)</icon>.*<bar>.*<r>.*</r>.*<d>.*</d>.*</bar>.*<wind>.*<s>(.*)</s>.*<gust>.*</gust>.*<d>.*</d>.*<t>.*</t>.*</wind>.*<hmid>(.*)</hmid>.*<vis>(.*)</vis>"
Code: Select all
<loc id="PLXX0049">
<dnam>Lublin, Poland</dnam>
What should I change in my parsing code to do that? I just want to display only LUBLIN in my weather skin.
Please help.