<?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: XMLSearch in ColdFusion &#8211; Unusual Behavior</title>
	<atom:link href="http://flexoop.com/2009/07/xmlsearch-in-coldfusion-unusual-behavior/feed/" rel="self" type="application/rss+xml" />
	<link>http://flexoop.com/2009/07/xmlsearch-in-coldfusion-unusual-behavior/</link>
	<description>Flex, AIR, ColdFusion, and everything in between</description>
	<lastBuildDate>Thu, 15 Dec 2011 04:02:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Gareth</title>
		<link>http://flexoop.com/2009/07/xmlsearch-in-coldfusion-unusual-behavior/comment-page-1/#comment-671</link>
		<dc:creator>Gareth</dc:creator>
		<pubDate>Wed, 05 Aug 2009 00:59:56 +0000</pubDate>
		<guid isPermaLink="false">http://flexoop.com/?p=170#comment-671</guid>
		<description>Glad to hear it helped you out.  It&#039;s nice to know that someone else didn&#039;t have to pummel away at their code trying to make it work :)</description>
		<content:encoded><![CDATA[<p>Glad to hear it helped you out.  It&#8217;s nice to know that someone else didn&#8217;t have to pummel away at their code trying to make it work <img src='http://flexoop.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony Nelson</title>
		<link>http://flexoop.com/2009/07/xmlsearch-in-coldfusion-unusual-behavior/comment-page-1/#comment-668</link>
		<dc:creator>Tony Nelson</dc:creator>
		<pubDate>Tue, 04 Aug 2009 15:31:58 +0000</pubDate>
		<guid isPermaLink="false">http://flexoop.com/?p=170#comment-668</guid>
		<description>I just stumbled upon this same issue today and was pleased to find such a simple solution. Thanks for the (unknowing) help.</description>
		<content:encoded><![CDATA[<p>I just stumbled upon this same issue today and was pleased to find such a simple solution. Thanks for the (unknowing) help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Nadel</title>
		<link>http://flexoop.com/2009/07/xmlsearch-in-coldfusion-unusual-behavior/comment-page-1/#comment-656</link>
		<dc:creator>Ben Nadel</dc:creator>
		<pubDate>Fri, 10 Jul 2009 21:41:32 +0000</pubDate>
		<guid isPermaLink="false">http://flexoop.com/?p=170#comment-656</guid>
		<description>Essentially there are three types of ways to find something based on the start of the search path:

&quot;/&quot; -&gt; Starting at the root document. As in:
/rootnode/subnode

&quot;//&quot; -&gt; Anywhere in the document. As in:
//subnode

&quot;./&quot; -&gt; (same as not putting any slash at all) Starting at the current context node.</description>
		<content:encoded><![CDATA[<p>Essentially there are three types of ways to find something based on the start of the search path:</p>
<p>&#8220;/&#8221; -&gt; Starting at the root document. As in:<br />
/rootnode/subnode</p>
<p>&#8220;//&#8221; -&gt; Anywhere in the document. As in:<br />
//subnode</p>
<p>&#8220;./&#8221; -&gt; (same as not putting any slash at all) Starting at the current context node.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gareth</title>
		<link>http://flexoop.com/2009/07/xmlsearch-in-coldfusion-unusual-behavior/comment-page-1/#comment-655</link>
		<dc:creator>Gareth</dc:creator>
		<pubDate>Fri, 10 Jul 2009 20:16:29 +0000</pubDate>
		<guid isPermaLink="false">http://flexoop.com/?p=170#comment-655</guid>
		<description>@Ben,
Ah, I had another go (now I&#039;ve got the official Ben Nadel Approved Code ;) ) and it looks like it&#039;s because I have another node in there.

./properties/property[ @identity=&#039;true&#039; ]

found it.

Is there a way to say &quot;find it anywhere in my subdocument&quot; rather than having to specify all nodes on the way to the node?</description>
		<content:encoded><![CDATA[<p>@Ben,<br />
Ah, I had another go (now I&#8217;ve got the official Ben Nadel Approved Code <img src='http://flexoop.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ) and it looks like it&#8217;s because I have another node in there.</p>
<p>./properties/property[ @identity='true' ]</p>
<p>found it.</p>
<p>Is there a way to say &#8220;find it anywhere in my subdocument&#8221; rather than having to specify all nodes on the way to the node?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Nadel</title>
		<link>http://flexoop.com/2009/07/xmlsearch-in-coldfusion-unusual-behavior/comment-page-1/#comment-654</link>
		<dc:creator>Ben Nadel</dc:creator>
		<pubDate>Fri, 10 Jul 2009 19:55:43 +0000</pubDate>
		<guid isPermaLink="false">http://flexoop.com/?p=170#comment-654</guid>
		<description>@Gareth,

You made one minor mistake that is causing the headache. Yes, the search results are references to elements STILL in the primary document tree. As such, you have to be careful about how you start you subsequent searches. If you use this:

//property[ @identity= &#039;true&#039;]

... the &quot;//&quot; means &quot;anywhere in the document.&quot; Well, since the search results are still *part* of the original document, the &quot;//&quot; will search as if you are searching of the main document.

To stay *within* the subset of the search results, I use this:

./property[ @identity= &#039;true&#039;]

... the &quot;./&quot; means &quot;starting at this node&quot; perform the search. You could also just forget the slash altogether:

property[ @identity= &#039;true&#039;]

... this should be the same thing (like folder paths).</description>
		<content:encoded><![CDATA[<p>@Gareth,</p>
<p>You made one minor mistake that is causing the headache. Yes, the search results are references to elements STILL in the primary document tree. As such, you have to be careful about how you start you subsequent searches. If you use this:</p>
<p>//property[ @identity= 'true']</p>
<p>&#8230; the &#8220;//&#8221; means &#8220;anywhere in the document.&#8221; Well, since the search results are still *part* of the original document, the &#8220;//&#8221; will search as if you are searching of the main document.</p>
<p>To stay *within* the subset of the search results, I use this:</p>
<p>./property[ @identity= 'true']</p>
<p>&#8230; the &#8220;./&#8221; means &#8220;starting at this node&#8221; perform the search. You could also just forget the slash altogether:</p>
<p>property[ @identity= 'true']</p>
<p>&#8230; this should be the same thing (like folder paths).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

