<?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: Parse Weather Forecast Data (from the NDFD) in PHP</title>
	<atom:link href="http://phpstarter.net/2009/02/parse-weather-forecast-data-from-the-ndfd-in-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://phpstarter.net/2009/02/parse-weather-forecast-data-from-the-ndfd-in-php/</link>
	<description>PHP Tips &#38; Tools From Starters to Experts</description>
	<lastBuildDate>Sat, 17 Mar 2012 08:13:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Andrew</title>
		<link>http://phpstarter.net/2009/02/parse-weather-forecast-data-from-the-ndfd-in-php/comment-page-1/#comment-799</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Mon, 19 Dec 2011 19:54:03 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=348#comment-799</guid>
		<description>&lt;p&gt;Ron - the parse_data.php file is the second code example under the &quot;Understanding the XML Output&quot; section.  Click on the &quot;Run this Example&quot; link to see the sample output or copy the code from the box to try it yourself.&lt;/p&gt;
&lt;h3&gt; &lt;/h3&gt;</description>
		<content:encoded><![CDATA[<p>Ron &#8211; the parse_data.php file is the second code example under the &#8220;Understanding the XML Output&#8221; section.  Click on the &#8220;Run this Example&#8221; link to see the sample output or copy the code from the box to try it yourself.</p>
<h3> </h3>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ron</title>
		<link>http://phpstarter.net/2009/02/parse-weather-forecast-data-from-the-ndfd-in-php/comment-page-1/#comment-798</link>
		<dc:creator>Ron</dc:creator>
		<pubDate>Mon, 19 Dec 2011 19:45:27 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=348#comment-798</guid>
		<description>Andrew

I have been reading your parsing of the NWS NDFD. I downloaded nuSOAP 0.9.5. I cannot find parse_data.php in your code examples. Am I missing something? I really to learn this. Thank you for any assistance.&lt;strong&gt;
 
&lt;/strong&gt;&lt;strong&gt;
 

 
&lt;/strong&gt;</description>
		<content:encoded><![CDATA[<p>Andrew</p>
<p>I have been reading your parsing of the NWS NDFD. I downloaded nuSOAP 0.9.5. I cannot find parse_data.php in your code examples. Am I missing something? I really to learn this. Thank you for any assistance.<strong></p>
<p></strong><strong><br />
 </p>
<p> <br />
</strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roch</title>
		<link>http://phpstarter.net/2009/02/parse-weather-forecast-data-from-the-ndfd-in-php/comment-page-1/#comment-666</link>
		<dc:creator>Roch</dc:creator>
		<pubDate>Wed, 07 Jul 2010 04:11:56 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=348#comment-666</guid>
		<description>I still haven&#039;t figured out why my brackets are gone when I get the xml back from the wsdl.  Has anyone had this happen???  I need to finish this and its been dragging on and on.....</description>
		<content:encoded><![CDATA[<p>I still haven&#8217;t figured out why my brackets are gone when I get the xml back from the wsdl.  Has anyone had this happen???  I need to finish this and its been dragging on and on&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harry</title>
		<link>http://phpstarter.net/2009/02/parse-weather-forecast-data-from-the-ndfd-in-php/comment-page-1/#comment-652</link>
		<dc:creator>Harry</dc:creator>
		<pubDate>Sat, 03 Jul 2010 08:24:01 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=348#comment-652</guid>
		<description>Andrew,
Have not figured out the issue ...in a related idea using xpath
i would like to extract the url of the icon-link and wrap  an img src tag around it.
i can extract the icon link  but it is always wrapped in &lt;icon-link&gt;&lt;/icon-link&gt;
 
Thanks
Harry</description>
		<content:encoded><![CDATA[<p>Andrew,<br />
Have not figured out the issue &#8230;in a related idea using xpath<br />
i would like to extract the url of the icon-link and wrap  an img src tag around it.<br />
i can extract the icon link  but it is always wrapped in &lt;icon-link&gt;&lt;/icon-link&gt;<br />
 <br />
Thanks<br />
Harry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roch</title>
		<link>http://phpstarter.net/2009/02/parse-weather-forecast-data-from-the-ndfd-in-php/comment-page-1/#comment-648</link>
		<dc:creator>Roch</dc:creator>
		<pubDate>Fri, 02 Jul 2010 19:06:02 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=348#comment-648</guid>
		<description>Here&#039;s a part of what I&#039;m getting back:
 
http://phpstarter.pastebin.com/jwXNgr3M</description>
		<content:encoded><![CDATA[<p>Here&#8217;s a part of what I&#8217;m getting back:<br />
 <br />
<a href="http://phpstarter.pastebin.com/jwXNgr3M" rel="nofollow">http://phpstarter.pastebin.com/jwXNgr3M</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://phpstarter.net/2009/02/parse-weather-forecast-data-from-the-ndfd-in-php/comment-page-1/#comment-647</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Fri, 02 Jul 2010 10:54:00 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=348#comment-647</guid>
		<description>&lt;p&gt;Harry - something is happening when you unserialize it I&#039;m guessing.&lt;/p&gt;
&lt;p&gt;From the manual page: &quot;In case the passed string is not unserializeable, FALSE is returned and E_NOTICE is issued.&quot;&lt;/p&gt;
&lt;p&gt;Try enabling E_NOTICE in your &lt;a href=&quot;http://us3.php.net/manual/en/function.error-reporting.php&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;error reporting&lt;/a&gt; to see if that is the issue.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Roch - can you provide an example?&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Harry &#8211; something is happening when you unserialize it I&#8217;m guessing.</p>
<p>From the manual page: &#8220;In case the passed string is not unserializeable, FALSE is returned and E_NOTICE is issued.&#8221;</p>
<p>Try enabling E_NOTICE in your <a href="http://us3.php.net/manual/en/function.error-reporting.php" target="_blank" rel="nofollow">error reporting</a> to see if that is the issue.</p>
<p> </p>
<p>Roch &#8211; can you provide an example?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roch</title>
		<link>http://phpstarter.net/2009/02/parse-weather-forecast-data-from-the-ndfd-in-php/comment-page-1/#comment-646</link>
		<dc:creator>Roch</dc:creator>
		<pubDate>Thu, 01 Jul 2010 05:38:01 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=348#comment-646</guid>
		<description>Has anyone had their XML come back with no brackets?? That&#039;s happening to me now and I don&#039;t know how to fix it!</description>
		<content:encoded><![CDATA[<p>Has anyone had their XML come back with no brackets?? That&#8217;s happening to me now and I don&#8217;t know how to fix it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harry</title>
		<link>http://phpstarter.net/2009/02/parse-weather-forecast-data-from-the-ndfd-in-php/comment-page-1/#comment-645</link>
		<dc:creator>Harry</dc:creator>
		<pubDate>Wed, 30 Jun 2010 17:00:36 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=348#comment-645</guid>
		<description>ohh, that is probably confusing.
the examples don&#039;t have file names so it is difficult to reference them.
comes from here var_dump($times)
/* loop through the time-layouts in the XML */
foreach ($xml-&gt;xpath(&#039;//time-layout&#039;) as $field =&gt; $value)
{
	/* get the layout-key to make it the array key value */
	$layout = (string)$value-&gt;{&#039;layout-key&#039;};
	
	
	$times[$layout] = array(&#039;start&#039; =&gt; get_values($value-&gt;xpath(&#039;start-valid-time&#039;)), 
							&#039;end&#039; =&gt; get_values($value-&gt;xpath(&#039;end-valid-time&#039;)));
}

header(&#039;Content-type: text/plain&#039;);
var_dump($times)&lt;----
 
 </description>
		<content:encoded><![CDATA[<p>ohh, that is probably confusing.<br />
the examples don&#8217;t have file names so it is difficult to reference them.<br />
comes from here var_dump($times)<br />
/* loop through the time-layouts in the XML */<br />
foreach ($xml-&gt;xpath(&#8216;//time-layout&#8217;) as $field =&gt; $value)<br />
{<br />
	/* get the layout-key to make it the array key value */<br />
	$layout = (string)$value-&gt;{&#8216;layout-key&#8217;};</p>
<p>	$times[$layout] = array(&#8216;start&#8217; =&gt; get_values($value-&gt;xpath(&#8216;start-valid-time&#8217;)),<br />
							&#8216;end&#8217; =&gt; get_values($value-&gt;xpath(&#8216;end-valid-time&#8217;)));<br />
}</p>
<p>header(&#8216;Content-type: text/plain&#8217;);<br />
var_dump($times)&lt;&#8212;-<br />
 <br />
 </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harry</title>
		<link>http://phpstarter.net/2009/02/parse-weather-forecast-data-from-the-ndfd-in-php/comment-page-1/#comment-644</link>
		<dc:creator>Harry</dc:creator>
		<pubDate>Wed, 30 Jun 2010 16:56:47 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=348#comment-644</guid>
		<description>wx_soap_data.txt is created by
var_dump($forecast) of the previous script</description>
		<content:encoded><![CDATA[<p>wx_soap_data.txt is created by<br />
var_dump($forecast) of the previous script</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harry</title>
		<link>http://phpstarter.net/2009/02/parse-weather-forecast-data-from-the-ndfd-in-php/comment-page-1/#comment-643</link>
		<dc:creator>Harry</dc:creator>
		<pubDate>Wed, 30 Jun 2010 16:50:52 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=348#comment-643</guid>
		<description>Andrew
Here is the script

http://phpstarter.pastebin.com/0VpXCyhW
 
bool(false)
 Warning: Invalid argument supplied for foreach() in  /home/content/n/e/w/news1537/html/nusoap/wx_soap_dataDisplay.php on line  15
 
 Warning: Invalid argument supplied for foreach() in  /home/content/n/e/w/news1537/html/nusoap/wx_soap_dataDisplay.php on line  20
 
wx_soap_data.txt
is the txt file in the same directory.
contents as in previous message
 
Harry</description>
		<content:encoded><![CDATA[<p>Andrew<br />
Here is the script</p>
<p><a href="http://phpstarter.pastebin.com/0VpXCyhW" rel="nofollow">http://phpstarter.pastebin.com/0VpXCyhW</a><br />
 <br />
bool(false)<br />
 Warning: Invalid argument supplied for foreach() in  /home/content/n/e/w/news1537/html/nusoap/wx_soap_dataDisplay.php on line  15</p>
<p> Warning: Invalid argument supplied for foreach() in  /home/content/n/e/w/news1537/html/nusoap/wx_soap_dataDisplay.php on line  20<br />
 <br />
wx_soap_data.txt<br />
is the txt file in the same directory.<br />
contents as in previous message<br />
 <br />
Harry</p>
]]></content:encoded>
	</item>
</channel>
</rss>

