<?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: SimpleXML and namespaces</title>
	<atom:link href="http://www.sitepoint.com/blogs/2005/10/20/simplexml-and-namespaces/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sitepoint.com/blogs/2005/10/20/simplexml-and-namespaces/</link>
	<description>News, opinion, and fresh thinking for web developers and designers. The official podcast of sitepoint.com.</description>
	<lastBuildDate>Sun, 08 Nov 2009 18:39:36 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Adrian Smith</title>
		<link>http://www.sitepoint.com/blogs/2005/10/20/simplexml-and-namespaces/comment-page-1/#comment-876001</link>
		<dc:creator>Adrian Smith</dc:creator>
		<pubDate>Mon, 09 Feb 2009 16:23:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2005/10/20/simplexml-and-namespaces/#comment-876001</guid>
		<description>That&#039;s brilliant, thanks a lot!</description>
		<content:encoded><![CDATA[<p>That&#8217;s brilliant, thanks a lot!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: mtorbin</title>
		<link>http://www.sitepoint.com/blogs/2005/10/20/simplexml-and-namespaces/comment-page-1/#comment-853251</link>
		<dc:creator>mtorbin</dc:creator>
		<pubDate>Tue, 23 Dec 2008 15:02:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2005/10/20/simplexml-and-namespaces/#comment-853251</guid>
		<description>Kevin, great article!  This helped a lot.  Question for you: how would I handle multiple namespace prefixes, such as the following:

[item:group]
    [widget:typeA attr1=&quot;&quot; attr2=&quot;&quot;/]
[/item:group]

If I wanted to get the values of attribute one and two of the widget, how would that be done?

Thanks,

 - MT</description>
		<content:encoded><![CDATA[<p>Kevin, great article!  This helped a lot.  Question for you: how would I handle multiple namespace prefixes, such as the following:</p>
<p>[item:group]<br />
    [widget:typeA attr1="" attr2=""/]<br />
[/item:group]</p>
<p>If I wanted to get the values of attribute one and two of the widget, how would that be done?</p>
<p>Thanks,</p>
<p> &#8211; MT</p>]]></content:encoded>
	</item>
	<item>
		<title>By: mtorbin</title>
		<link>http://www.sitepoint.com/blogs/2005/10/20/simplexml-and-namespaces/comment-page-1/#comment-853249</link>
		<dc:creator>mtorbin</dc:creator>
		<pubDate>Tue, 23 Dec 2008 15:01:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2005/10/20/simplexml-and-namespaces/#comment-853249</guid>
		<description>Kevin, great article!  This helped a lot.  Question for you: how would I handle multiple namespace prefixes, such as the following:



    



If I wanted to get the values of attribute one and two of the widget, how would that be done?

Thanks,

 - MT</description>
		<content:encoded><![CDATA[<p>Kevin, great article!  This helped a lot.  Question for you: how would I handle multiple namespace prefixes, such as the following:</p>
<p>If I wanted to get the values of attribute one and two of the widget, how would that be done?</p>
<p>Thanks,</p>
<p> &#8211; MT</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://www.sitepoint.com/blogs/2005/10/20/simplexml-and-namespaces/comment-page-1/#comment-789491</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Sun, 31 Aug 2008 16:48:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2005/10/20/simplexml-and-namespaces/#comment-789491</guid>
		<description>Great article.  I have been trying to get a value from a node with a namespace for quite some time now and couldn&#039;t quite figure it out.

Thanks.</description>
		<content:encoded><![CDATA[<p>Great article.  I have been trying to get a value from a node with a namespace for quite some time now and couldn&#8217;t quite figure it out.</p>
<p>Thanks.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Crashdaddy</title>
		<link>http://www.sitepoint.com/blogs/2005/10/20/simplexml-and-namespaces/comment-page-1/#comment-602137</link>
		<dc:creator>Crashdaddy</dc:creator>
		<pubDate>Sun, 13 Jan 2008 22:29:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2005/10/20/simplexml-and-namespaces/#comment-602137</guid>
		<description>That&#039;s definitely &lt;em&gt;dugg&lt;/em&gt;.  Thank you!</description>
		<content:encoded><![CDATA[<p>That&#8217;s definitely <em>dugg</em>.  Thank you!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: whatever</title>
		<link>http://www.sitepoint.com/blogs/2005/10/20/simplexml-and-namespaces/comment-page-1/#comment-533595</link>
		<dc:creator>whatever</dc:creator>
		<pubDate>Mon, 03 Dec 2007 19:31:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2005/10/20/simplexml-and-namespaces/#comment-533595</guid>
		<description>is there a way to escape &quot;&quot; in xml file only. I want those characters to be recognized in html though.</description>
		<content:encoded><![CDATA[<p>is there a way to escape &#8220;&#8221; in xml file only. I want those characters to be recognized in html though.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.sitepoint.com/blogs/2005/10/20/simplexml-and-namespaces/comment-page-1/#comment-431430</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 31 Oct 2007 20:23:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2005/10/20/simplexml-and-namespaces/#comment-431430</guid>
		<description>SimpleXML and namespaces are sooo gay. This should be handled the same as non-namespaced attributes.</description>
		<content:encoded><![CDATA[<p>SimpleXML and namespaces are sooo gay. This should be handled the same as non-namespaced attributes.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: greg bass</title>
		<link>http://www.sitepoint.com/blogs/2005/10/20/simplexml-and-namespaces/comment-page-1/#comment-222008</link>
		<dc:creator>greg bass</dc:creator>
		<pubDate>Tue, 10 Apr 2007 17:53:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2005/10/20/simplexml-and-namespaces/#comment-222008</guid>
		<description>Kevin,
Thank you for this article.  I bought the book previously and this missing topic is just what I&#039;m stuck on.  If you could indulge my ignorance, I am still stuck on how to parse multiple namespace items with multiple attributes on the same level. I am trying to parse the yahoo weather rss feed:

&lt;channel&gt;
...
  &lt;yweather:location city=&quot;Tombstone&quot; region=&quot;Arizona&quot; country=&quot;US&quot;&gt;&lt;yweather:location&gt;
...
  &lt;yweather:astronomy sunrise=&quot;7:02am&quot; sunset=&quot;4:51pm&quot;&gt;&lt;yweather:astronomy&gt;
...
&lt;channel&gt;

how do I get to sunrise for instance? $sunrise = ?
Thanks!</description>
		<content:encoded><![CDATA[<p>Kevin,<br />
Thank you for this article.  I bought the book previously and this missing topic is just what I&#8217;m stuck on.  If you could indulge my ignorance, I am still stuck on how to parse multiple namespace items with multiple attributes on the same level. I am trying to parse the yahoo weather rss feed:</p>
<p>&lt;channel&gt;<br />
&#8230;<br />
  &lt;yweather:location city=&quot;Tombstone&quot; region=&quot;Arizona&quot; country=&quot;US&quot;&gt;&lt;yweather:location&gt;<br />
&#8230;<br />
  &lt;yweather:astronomy sunrise=&quot;7:02am&quot; sunset=&quot;4:51pm&quot;&gt;&lt;yweather:astronomy&gt;<br />
&#8230;<br />
&lt;channel&gt;</p>
<p>how do I get to sunrise for instance? $sunrise = ?<br />
Thanks!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Yank</title>
		<link>http://www.sitepoint.com/blogs/2005/10/20/simplexml-and-namespaces/comment-page-1/#comment-214032</link>
		<dc:creator>Kevin Yank</dc:creator>
		<pubDate>Thu, 29 Mar 2007 02:52:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2005/10/20/simplexml-and-namespaces/#comment-214032</guid>
		<description>Anonymous,

Sure -- just use the getNamespaces method: http://www.php.net/manual/en/function.simplexml-element-getNamespaces.php</description>
		<content:encoded><![CDATA[<p>Anonymous,</p>
<p>Sure &#8212; just use the getNamespaces method: <a href="http://www.php.net/manual/en/function.simplexml-element-getNamespaces.php" rel="nofollow">http://www.php.net/manual/en/function.simplexml-element-getNamespaces.php</a></p>]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.sitepoint.com/blogs/2005/10/20/simplexml-and-namespaces/comment-page-1/#comment-213996</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 29 Mar 2007 01:33:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2005/10/20/simplexml-and-namespaces/#comment-213996</guid>
		<description>Is there any way to (automatically) get the xmlns:dc URL from the code?  I&#039;d like to find the URI in code, but all examples have it hard-coded.</description>
		<content:encoded><![CDATA[<p>Is there any way to (automatically) get the xmlns:dc URL from the code?  I&#8217;d like to find the URI in code, but all examples have it hard-coded.</p>]]></content:encoded>
	</item>
</channel>
</rss>
