<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Sql on Shaaf's blog</title><link>https://shaaf.dev/tags/sql/</link><description>Recent content in Sql on Shaaf's blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Wed, 10 Dec 2008 16:58:04 +0100</lastBuildDate><atom:link href="https://shaaf.dev/tags/sql/index.xml" rel="self" type="application/rss+xml"/><item><title>Generate XML - DBMS_XMLGEN</title><link>https://shaaf.dev/post/2008-12-10-generate-xml-dbms_xmlgen/</link><pubDate>Wed, 10 Dec 2008 16:58:04 +0100</pubDate><guid>https://shaaf.dev/post/2008-12-10-generate-xml-dbms_xmlgen/</guid><description>&lt;p>On my way to my solution store just found this nice to use, old and easy feature.
Possibilities endless, usage typically very easy.&lt;/p>
&lt;p>I used the following to generate XML from sqlplus:&lt;/p>
&lt;pre>&lt;code>select dbms_xmlgen.getxml('select * from user') from dual;
&lt;/code>&lt;/pre>
&lt;p>Output:
&amp;lt; ROWSET &amp;gt;
&amp;lt; ROW &amp;gt;
&amp;lt; TNAME &amp;gt;Employee&amp;lt; / TNAME &amp;gt;
&amp;lt; TABTYPE &amp;gt; TABLE &amp;lt; / TABTYPE &amp;gt;
&amp;lt; / ROW &amp;gt;
&amp;lt; / ROWSET &amp;gt;&lt;/p></description></item></channel></rss>