<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Commenti a: myWeather 2.0 beta released</title>
	<atom:link href="http://www.thedeveloperinside.com/blog/myweather-20-beta-relesed/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thedeveloperinside.com/blog/myweather-20-beta-relesed/</link>
	<description>Appunti di programmazione, grafica e pensieri</description>
	<pubDate>Fri, 21 Nov 2008 12:29:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>Di: Chris</title>
		<link>http://www.thedeveloperinside.com/blog/myweather-20-beta-relesed/#comment-191</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 21 Sep 2007 16:15:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.thedeveloperinside.com/blog/myweather-20-beta-relesed/#comment-191</guid>
		<description>Thanks for you plugin !

I've got a plan when I found this plugin.I want to use this plugin to change my headerimg of my blog when the weather was changed.
So I want to know,can I change the images of this plugin for my blog?
If you see this,please send me a email to tell me. spoppig5#gmail.com

Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks for you plugin !</p>
<p>I&#8217;ve got a plan when I found this plugin.I want to use this plugin to change my headerimg of my blog when the weather was changed.<br />
So I want to know,can I change the images of this plugin for my blog?<br />
If you see this,please send me a email to tell me. spoppig5#gmail.com</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Di: Eric</title>
		<link>http://www.thedeveloperinside.com/blog/myweather-20-beta-relesed/#comment-35</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Fri, 15 Jun 2007 10:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.thedeveloperinside.com/blog/myweather-20-beta-relesed/#comment-35</guid>
		<description>Thanks for you plugin ! I adaptated it a bit in order to get more efficiency and above all to be able to put as many cities as I wanted :)

Here's my adaptation : I used the simplexml_load_string() function for PHP5. It is an easy way to read data in a xml file to a xml object. Then I converted the attributes extracted from the xml object in string objects. Here is the code :

function weather($city,$t_type){
	global $plugin_directory;
	$fdata = "http://xoap.weather.com/weather/local/".$city."?cc=*&#38;dayf=0";
	$file=file_get_contents($fdata);
		
    $xml = simplexml_load_string($file);

	$city = (string) $xml-&#62;loc-&#62;dnam;
	$time = (string) $xml-&#62;loc-&#62;tm;
	$icon = (string) $xml-&#62;cc-&#62;icon;
	$weather = (string) $xml-&#62;cc-&#62;t;
	$tmp = (string) $xml-&#62;cc-&#62;tmp;

(etc.)

As you can see, I didn't use any XML Parser.

Thanks again !</description>
		<content:encoded><![CDATA[<p>Thanks for you plugin ! I adaptated it a bit in order to get more efficiency and above all to be able to put as many cities as I wanted <img src='http://www.thedeveloperinside.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Here&#8217;s my adaptation : I used the simplexml_load_string() function for PHP5. It is an easy way to read data in a xml file to a xml object. Then I converted the attributes extracted from the xml object in string objects. Here is the code :</p>
<p>function weather($city,$t_type){<br />
	global $plugin_directory;<br />
	$fdata = &#8220;http://xoap.weather.com/weather/local/&#8221;.$city.&#8221;?cc=*&amp;dayf=0&#8243;;<br />
	$file=file_get_contents($fdata);</p>
<p>    $xml = simplexml_load_string($file);</p>
<p>	$city = (string) $xml-&gt;loc-&gt;dnam;<br />
	$time = (string) $xml-&gt;loc-&gt;tm;<br />
	$icon = (string) $xml-&gt;cc-&gt;icon;<br />
	$weather = (string) $xml-&gt;cc-&gt;t;<br />
	$tmp = (string) $xml-&gt;cc-&gt;tmp;</p>
<p>(etc.)</p>
<p>As you can see, I didn&#8217;t use any XML Parser.</p>
<p>Thanks again !</p>
]]></content:encoded>
	</item>
</channel>
</rss>
