<?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: Nested FOR XML results with SQL Server&#8217;s PATH mode</title>
	<atom:link href="http://richarddingwall.name/2008/08/26/nested-xml-results-from-sql-server-with-for-xml-path/feed/" rel="self" type="application/rss+xml" />
	<link>http://richarddingwall.name/2008/08/26/nested-xml-results-from-sql-server-with-for-xml-path/</link>
	<description>The adventures of a young kiwi software developer in London</description>
	<lastBuildDate>Tue, 31 Jan 2012 19:56:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: MS SQL: XML query &#171; ellynguyen</title>
		<link>http://richarddingwall.name/2008/08/26/nested-xml-results-from-sql-server-with-for-xml-path/comment-page-1/#comment-48560</link>
		<dc:creator>MS SQL: XML query &#171; ellynguyen</dc:creator>
		<pubDate>Wed, 30 Nov 2011 03:36:09 +0000</pubDate>
		<guid isPermaLink="false">http://richarddingwall.name/?p=354#comment-48560</guid>
		<description>[...] Nested FOR XML results with SQL Server’s PATH mode [...]</description>
		<content:encoded><![CDATA[<p>[...] Nested FOR XML results with SQL Server’s PATH mode [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Walker</title>
		<link>http://richarddingwall.name/2008/08/26/nested-xml-results-from-sql-server-with-for-xml-path/comment-page-1/#comment-16399</link>
		<dc:creator>Aaron Walker</dc:creator>
		<pubDate>Tue, 24 Aug 2010 17:40:20 +0000</pubDate>
		<guid isPermaLink="false">http://richarddingwall.name/?p=354#comment-16399</guid>
		<description>Micah-

You can remove the &quot;products&quot; element and put the nested &quot;product&quot; elements directly under the &quot;category&quot; element by changing the &quot;AS &#039;products&#039;&quot; line to &quot;AS &#039;category&#039;&quot;.

By re-using the parent element name here the child elements are nested directly below the parent.</description>
		<content:encoded><![CDATA[<p>Micah-</p>
<p>You can remove the &#8220;products&#8221; element and put the nested &#8220;product&#8221; elements directly under the &#8220;category&#8221; element by changing the &#8220;AS &#8216;products&#8217;&#8221; line to &#8220;AS &#8216;category&#8217;&#8221;.</p>
<p>By re-using the parent element name here the child elements are nested directly below the parent.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://richarddingwall.name/2008/08/26/nested-xml-results-from-sql-server-with-for-xml-path/comment-page-1/#comment-13521</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Tue, 06 Apr 2010 23:17:01 +0000</pubDate>
		<guid isPermaLink="false">http://richarddingwall.name/?p=354#comment-13521</guid>
		<description>This works for me too, but a problem I have is the final FROM XML when I use the Directive TYPE I do not get and XML output. However if I remove the TYPE directive I do get the output in Mangement Studio. I think I may have a bad character or somethign but I am not finding anything. Also how do you do CDATA with XML PATH. Thanks fo rthe example</description>
		<content:encoded><![CDATA[<p>This works for me too, but a problem I have is the final FROM XML when I use the Directive TYPE I do not get and XML output. However if I remove the TYPE directive I do get the output in Mangement Studio. I think I may have a bad character or somethign but I am not finding anything. Also how do you do CDATA with XML PATH. Thanks fo rthe example</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AB</title>
		<link>http://richarddingwall.name/2008/08/26/nested-xml-results-from-sql-server-with-for-xml-path/comment-page-1/#comment-13302</link>
		<dc:creator>AB</dc:creator>
		<pubDate>Tue, 30 Mar 2010 17:28:26 +0000</pubDate>
		<guid isPermaLink="false">http://richarddingwall.name/?p=354#comment-13302</guid>
		<description>Good on ya mate - exactly what I was looking for</description>
		<content:encoded><![CDATA[<p>Good on ya mate &#8211; exactly what I was looking for</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://richarddingwall.name/2008/08/26/nested-xml-results-from-sql-server-with-for-xml-path/comment-page-1/#comment-8612</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Thu, 06 Aug 2009 21:27:33 +0000</pubDate>
		<guid isPermaLink="false">http://richarddingwall.name/?p=354#comment-8612</guid>
		<description>@Micah: I&#039;m not sure if it&#039;s possible to merge the elements for the outer and inner queries like that with SQL.</description>
		<content:encoded><![CDATA[<p>@Micah: I&#8217;m not sure if it&#8217;s possible to merge the elements for the outer and inner queries like that with SQL.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Micah</title>
		<link>http://richarddingwall.name/2008/08/26/nested-xml-results-from-sql-server-with-for-xml-path/comment-page-1/#comment-8609</link>
		<dc:creator>Micah</dc:creator>
		<pubDate>Thu, 06 Aug 2009 20:09:35 +0000</pubDate>
		<guid isPermaLink="false">http://richarddingwall.name/?p=354#comment-8609</guid>
		<description>This is very close to what I’ve been looking for.
Using your example above, how would you remove the &#039;products&#039; element and simply toss the &#039;product&#039; elements under a &#039;category&#039; element?</description>
		<content:encoded><![CDATA[<p>This is very close to what I’ve been looking for.<br />
Using your example above, how would you remove the &#8216;products&#8217; element and simply toss the &#8216;product&#8217; elements under a &#8216;category&#8217; element?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Micah</title>
		<link>http://richarddingwall.name/2008/08/26/nested-xml-results-from-sql-server-with-for-xml-path/comment-page-1/#comment-8608</link>
		<dc:creator>Micah</dc:creator>
		<pubDate>Thu, 06 Aug 2009 20:08:24 +0000</pubDate>
		<guid isPermaLink="false">http://richarddingwall.name/?p=354#comment-8608</guid>
		<description>This is very close to what I&#039;ve been looking for.
Using your example above, how would you remove the  element and simply toss the  elements under a  element?</description>
		<content:encoded><![CDATA[<p>This is very close to what I&#8217;ve been looking for.<br />
Using your example above, how would you remove the  element and simply toss the  elements under a  element?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Dingwall &#187; Memory leak with Enterprise Library 4 Data block and Execute Reader</title>
		<link>http://richarddingwall.name/2008/08/26/nested-xml-results-from-sql-server-with-for-xml-path/comment-page-1/#comment-5896</link>
		<dc:creator>Richard Dingwall &#187; Memory leak with Enterprise Library 4 Data block and Execute Reader</dc:creator>
		<pubDate>Tue, 09 Jun 2009 22:39:08 +0000</pubDate>
		<guid isPermaLink="false">http://richarddingwall.name/?p=354#comment-5896</guid>
		<description>[...] We eventually were able to narrow it down to this offending piece of code, used for running FOR XML [...]</description>
		<content:encoded><![CDATA[<p>[...] We eventually were able to narrow it down to this offending piece of code, used for running FOR XML [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://richarddingwall.name/2008/08/26/nested-xml-results-from-sql-server-with-for-xml-path/comment-page-1/#comment-2309</link>
		<dc:creator>John</dc:creator>
		<pubDate>Thu, 26 Feb 2009 18:36:01 +0000</pubDate>
		<guid isPermaLink="false">http://richarddingwall.name/?p=354#comment-2309</guid>
		<description>Thanks for the great example.  BOL alludes to this, but doesn&#039;t give any real examples, and the TYPE keyword was why I couldn&#039;t get it working correctly (because I never included it in my query).  Thanks so much, as this makes querying the db with BizTalk much much easier to do.</description>
		<content:encoded><![CDATA[<p>Thanks for the great example.  BOL alludes to this, but doesn&#8217;t give any real examples, and the TYPE keyword was why I couldn&#8217;t get it working correctly (because I never included it in my query).  Thanks so much, as this makes querying the db with BizTalk much much easier to do.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Dingwall &#187; More nested XML with SQL Server: recursing n-level trees</title>
		<link>http://richarddingwall.name/2008/08/26/nested-xml-results-from-sql-server-with-for-xml-path/comment-page-1/#comment-582</link>
		<dc:creator>Richard Dingwall &#187; More nested XML with SQL Server: recursing n-level trees</dc:creator>
		<pubDate>Sat, 30 Aug 2008 10:42:38 +0000</pubDate>
		<guid isPermaLink="false">http://richarddingwall.name/?p=354#comment-582</guid>
		<description>[...] my foray into XML SQL queries this week, I was presented with another challenge. Instead of getting just the immediate children of a [...]</description>
		<content:encoded><![CDATA[<p>[...] my foray into XML SQL queries this week, I was presented with another challenge. Instead of getting just the immediate children of a [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

