<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: addWeather 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/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=myweather-20-beta-relesed</link>
	<description>Appunti di programmazione, grafica e pensieri</description>
	<lastBuildDate>Mon, 05 Dec 2011 11:09:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Chris</title>
		<link>http://www.thedeveloperinside.com/blog/myweather-20-beta-relesed/comment-page-1/#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&#039;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>By: Eric</title>
		<link>http://www.thedeveloperinside.com/blog/myweather-20-beta-relesed/comment-page-1/#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&#039;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 = &quot;http://xoap.weather.com/weather/local/&quot;.$city.&quot;?cc=*&amp;dayf=0&quot;;
	$file=file_get_contents($fdata);
		
    $xml = simplexml_load_string($file);

	$city = (string) $xml-&gt;loc-&gt;dnam;
	$time = (string) $xml-&gt;loc-&gt;tm;
	$icon = (string) $xml-&gt;cc-&gt;icon;
	$weather = (string) $xml-&gt;cc-&gt;t;
	$tmp = (string) $xml-&gt;cc-&gt;tmp;

(etc.)

As you can see, I didn&#039;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>

