<?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: Namespaces in XML</title>
	<atom:link href="http://tenderlovemaking.com/2009/04/23/namespaces-in-xml/feed/" rel="self" type="application/rss+xml" />
	<link>http://tenderlovemaking.com/2009/04/23/namespaces-in-xml/</link>
	<description>The act of making love, tenderly.</description>
	<lastBuildDate>Thu, 04 Mar 2010 14:03:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Evan Reeves</title>
		<link>http://tenderlovemaking.com/2009/04/23/namespaces-in-xml/comment-page-1/#comment-110639</link>
		<dc:creator>Evan Reeves</dc:creator>
		<pubDate>Wed, 24 Feb 2010 18:54:43 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/?p=237#comment-110639</guid>
		<description>I feel like an idiot for not having discovered this explanation earlier (here or anywhere else!). Thanks for this explanation and special thanks for giving Nokogiri examples. My Ruby n00b ass has a much better understanding now!</description>
		<content:encoded><![CDATA[<p>I feel like an idiot for not having discovered this explanation earlier (here or anywhere else!). Thanks for this explanation and special thanks for giving Nokogiri examples. My Ruby n00b ass has a much better understanding now!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Patterson</title>
		<link>http://tenderlovemaking.com/2009/04/23/namespaces-in-xml/comment-page-1/#comment-103647</link>
		<dc:creator>Aaron Patterson</dc:creator>
		<pubDate>Tue, 17 Nov 2009 18:45:02 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/?p=237#comment-103647</guid>
		<description>@john yes, good catch.  I will fix.  Thanks!</description>
		<content:encoded><![CDATA[<p>@john yes, good catch.  I will fix.  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john</title>
		<link>http://tenderlovemaking.com/2009/04/23/namespaces-in-xml/comment-page-1/#comment-103646</link>
		<dc:creator>john</dc:creator>
		<pubDate>Tue, 17 Nov 2009 18:37:13 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/?p=237#comment-103646</guid>
		<description>Um, should this be doc.xpath, etc.?

doc.xml(&#039;//tire&#039;)
doc.xml(&#039;//aliceAuto:tire&#039;,
  &#039;aliceAuto&#039; =&gt; &#039;http://alicesautosupply.example.com/&#039;
)</description>
		<content:encoded><![CDATA[<p>Um, should this be doc.xpath, etc.?</p>
<p>doc.xml(&#8216;//tire&#8217;)<br />
doc.xml(&#8216;//aliceAuto:tire&#8217;,<br />
  &#8216;aliceAuto&#8217; =&gt; &#8216;http://alicesautosupply.example.com/&#8217;<br />
)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Smick</title>
		<link>http://tenderlovemaking.com/2009/04/23/namespaces-in-xml/comment-page-1/#comment-77052</link>
		<dc:creator>Jeff Smick</dc:creator>
		<pubDate>Sun, 17 May 2009 19:16:44 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/?p=237#comment-77052</guid>
		<description>&lt;p&gt;How would I find the inventory node for a specific namespace?&lt;/p&gt;

&lt;p&gt;If we put the two together:


  
  


  
  
&lt;/p&gt;

&lt;p&gt;What query would I use to find Bob&#039;s inventory?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>How would I find the inventory node for a specific namespace?</p>
<p>If we put the two together:</p>
<p>What query would I use to find Bob&#8217;s inventory?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce</title>
		<link>http://tenderlovemaking.com/2009/04/23/namespaces-in-xml/comment-page-1/#comment-75941</link>
		<dc:creator>Bruce</dc:creator>
		<pubDate>Thu, 07 May 2009 01:38:53 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/?p=237#comment-75941</guid>
		<description>&lt;p&gt;Maybe a dumb question, but do you have to declare the bindings on every xpath method call, or can you register them independently (which can be useful, particularly if you&#039;re dealing with a lot of content with default namespaces)?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Maybe a dumb question, but do you have to declare the bindings on every xpath method call, or can you register them independently (which can be useful, particularly if you&#8217;re dealing with a lot of content with default namespaces)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Patterson</title>
		<link>http://tenderlovemaking.com/2009/04/23/namespaces-in-xml/comment-page-1/#comment-74520</link>
		<dc:creator>Aaron Patterson</dc:creator>
		<pubDate>Fri, 24 Apr 2009 01:27:36 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/?p=237#comment-74520</guid>
		<description>&lt;p&gt;@Dr Nic: You could, but then you would have to standardize on an attribute name.  Everyone would have to agree on one particular attribute name to examine.  If you gave me your XML document, you would have to tell me to examine the &quot;type&quot; attribute, where someone else might choose the &quot;class&quot; attribute.  The namespace attribute is standardized.&lt;/p&gt;

&lt;p&gt;Not to mention in your example, the attribute value would have to be unique.  I couldn&#039;t tell the difference between a car tire from Ford and a car tire from GM.  ;-)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Dr Nic: You could, but then you would have to standardize on an attribute name.  Everyone would have to agree on one particular attribute name to examine.  If you gave me your XML document, you would have to tell me to examine the &#8220;type&#8221; attribute, where someone else might choose the &#8220;class&#8221; attribute.  The namespace attribute is standardized.</p>
<p>Not to mention in your example, the attribute value would have to be unique.  I couldn&#8217;t tell the difference between a car tire from Ford and a car tire from GM.  <img src='http://tenderlovemaking.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr Nic</title>
		<link>http://tenderlovemaking.com/2009/04/23/namespaces-in-xml/comment-page-1/#comment-74503</link>
		<dc:creator>Dr Nic</dc:creator>
		<pubDate>Fri, 24 Apr 2009 00:17:45 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/?p=237#comment-74503</guid>
		<description>&lt;pre&gt;&lt;tire type=&#039;car&#039;&gt;...&lt;/tire&gt;&lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<pre>&lt;tire type='car'&gt;...&lt;/tire&gt;</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr Nic</title>
		<link>http://tenderlovemaking.com/2009/04/23/namespaces-in-xml/comment-page-1/#comment-74499</link>
		<dc:creator>Dr Nic</dc:creator>
		<pubDate>Thu, 23 Apr 2009 23:54:42 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/?p=237#comment-74499</guid>
		<description>&lt;p&gt;So why namespacing vs element attributes?&lt;/p&gt;

&lt;p&gt;e.g. &lt;/p&gt;

&lt;pre&gt;...&lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<p>So why namespacing vs element attributes?</p>
<p>e.g. </p>
<pre>...</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Patterson</title>
		<link>http://tenderlovemaking.com/2009/04/23/namespaces-in-xml/comment-page-1/#comment-74487</link>
		<dc:creator>Aaron Patterson</dc:creator>
		<pubDate>Thu, 23 Apr 2009 21:55:53 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/?p=237#comment-74487</guid>
		<description>&lt;p&gt;@Dr Nic: Just to make them unique.  You could make your URL point somewhere useful, but the main point is to be unique.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Dr Nic: Just to make them unique.  You could make your URL point somewhere useful, but the main point is to be unique.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Patterson</title>
		<link>http://tenderlovemaking.com/2009/04/23/namespaces-in-xml/comment-page-1/#comment-74486</link>
		<dc:creator>Aaron Patterson</dc:creator>
		<pubDate>Thu, 23 Apr 2009 21:52:17 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/?p=237#comment-74486</guid>
		<description>&lt;p&gt;@Dr Nic: to avoid name collisions.  Imagine if the two companies in my story were to merge XML documents.  You would still want to be able to tell the difference between car tires and bike tires.  It wouldn&#039;t be possible without either changing the tag name, or adding a namespace.&lt;/p&gt;

&lt;p&gt;I like to think of the namespace as a standardized attribute that is on every node.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Dr Nic: to avoid name collisions.  Imagine if the two companies in my story were to merge XML documents.  You would still want to be able to tell the difference between car tires and bike tires.  It wouldn&#8217;t be possible without either changing the tag name, or adding a namespace.</p>
<p>I like to think of the namespace as a standardized attribute that is on every node.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
