<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>XML Table &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/xml-table/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Mon, 20 Nov 2017 10:27:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.6</generator>
	<item>
		<title>PostgreSQL 10: Introduced XML Table &#8211; to store XML Document</title>
		<link>https://www.dbrnd.com/2017/12/postgresql-10-introduced-xml-table-to-store-xml-document/</link>
					<comments>https://www.dbrnd.com/2017/12/postgresql-10-introduced-xml-table-to-store-xml-document/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Sat, 09 Dec 2017 16:16:23 +0000</pubDate>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[plpgsql]]></category>
		<category><![CDATA[Postgres Query]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[PostgreSQL 10]]></category>
		<category><![CDATA[PostgreSQL Administrator]]></category>
		<category><![CDATA[PostgreSQL Error]]></category>
		<category><![CDATA[PostgreSQL Monitoring]]></category>
		<category><![CDATA[PostgreSQL Performance Tuning]]></category>
		<category><![CDATA[PostgreSQL Programming]]></category>
		<category><![CDATA[PostgreSQL Tips and Tricks]]></category>
		<category><![CDATA[XML Table]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=6785</guid>

					<description><![CDATA[PostgreSQL 10 introduced the concept of XML Table where we can store full XML Document. We can retrieve the XML Document in a tabular format. In the ETL process, we can extract XML files and directly stores into a relational table format. Later, we can apply any filters on it. Check the below simple demonstration [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F12%2Fpostgresql-10-introduced-xml-table-to-store-xml-document%2F&amp;linkname=PostgreSQL%2010%3A%20Introduced%20XML%20Table%20%E2%80%93%20to%20store%20XML%20Document" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F12%2Fpostgresql-10-introduced-xml-table-to-store-xml-document%2F&amp;linkname=PostgreSQL%2010%3A%20Introduced%20XML%20Table%20%E2%80%93%20to%20store%20XML%20Document" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F12%2Fpostgresql-10-introduced-xml-table-to-store-xml-document%2F&amp;linkname=PostgreSQL%2010%3A%20Introduced%20XML%20Table%20%E2%80%93%20to%20store%20XML%20Document" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F12%2Fpostgresql-10-introduced-xml-table-to-store-xml-document%2F&amp;linkname=PostgreSQL%2010%3A%20Introduced%20XML%20Table%20%E2%80%93%20to%20store%20XML%20Document" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F12%2Fpostgresql-10-introduced-xml-table-to-store-xml-document%2F&amp;linkname=PostgreSQL%2010%3A%20Introduced%20XML%20Table%20%E2%80%93%20to%20store%20XML%20Document" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F12%2Fpostgresql-10-introduced-xml-table-to-store-xml-document%2F&amp;linkname=PostgreSQL%2010%3A%20Introduced%20XML%20Table%20%E2%80%93%20to%20store%20XML%20Document" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F12%2Fpostgresql-10-introduced-xml-table-to-store-xml-document%2F&#038;title=PostgreSQL%2010%3A%20Introduced%20XML%20Table%20%E2%80%93%20to%20store%20XML%20Document" data-a2a-url="https://www.dbrnd.com/2017/12/postgresql-10-introduced-xml-table-to-store-xml-document/" data-a2a-title="PostgreSQL 10: Introduced XML Table – to store XML Document"></a></p><p>PostgreSQL 10 introduced the concept of XML Table where we can store full XML Document.<br />
We can retrieve the XML Document in a tabular format.</p>
<p>In the ETL process, we can extract XML files and directly stores into a relational table format. Later, we can apply any filters on it.</p>
<p>Check the below simple demonstration on this:</p>
<p><strong>Create a sample XML Table:</strong></p>
<pre class="crayon-plain-tag">CREATE TABLE tbl_Students AS SELECT xml
$$              
&lt;students&gt;
 &lt;class id="A"&gt;
  &lt;name&gt;Anvesh&lt;/name&gt;
  &lt;subjects&gt;
   &lt;subject name="English"&gt;&lt;/subject&gt;
   &lt;subject name="Computer"&gt;&lt;/subject&gt;
  &lt;/subjects&gt;
  &lt;/class&gt;
 &lt;/students&gt;
 $$ AS Students;</pre> </p>
<p><strong>Get XML data into Tabular format:</strong></p>
<pre class="crayon-plain-tag">SELECT xmltable.*
  FROM tbl_Students,
       XMLTABLE ('/students/class/subjects/subject' PASSING Students
                 COLUMNS
                    id FOR ORDINALITY,
                    Student_Name text PATH '../../name' NOT NULL
                 	,Subject_Name text PATH '@name'
                );</pre> </p>
<p><strong>Result:</strong>                </p>
<pre class="crayon-plain-tag">id   |  student_name   |   subject_name
______________________________________________
 1    |  Anvesh         |   English
 2    |  Anvesh         |   Computer</pre> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2017/12/postgresql-10-introduced-xml-table-to-store-xml-document/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
