<?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: Trick #4 &#8211; Pull XML with DBMS_XMLGEN</title>
	<atom:link href="http://www.oraclealchemist.com/news/trick-4-pull-xml-with-dbms_xmlgen/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.oraclealchemist.com/news/trick-4-pull-xml-with-dbms_xmlgen/</link>
	<description>Steve Karam's Oracle Blog</description>
	<lastBuildDate>Thu, 29 Jul 2010 20:12:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: David</title>
		<link>http://www.oraclealchemist.com/news/trick-4-pull-xml-with-dbms_xmlgen/comment-page-1/#comment-44250</link>
		<dc:creator>David</dc:creator>
		<pubDate>Fri, 21 Aug 2009 17:09:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.oraclealchemist.com/news/trick-4-pull-xml-with-dbms_xmlgen/#comment-44250</guid>
		<description>Is there a max output filesize limit to XML Publisher that you have come across? I don&#039;t see anything in the Oracle XML Publisher documentation. Thanks</description>
		<content:encoded><![CDATA[<p>Is there a max output filesize limit to XML Publisher that you have come across? I don&#8217;t see anything in the Oracle XML Publisher documentation. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ron Kincer</title>
		<link>http://www.oraclealchemist.com/news/trick-4-pull-xml-with-dbms_xmlgen/comment-page-1/#comment-44122</link>
		<dc:creator>Ron Kincer</dc:creator>
		<pubDate>Fri, 12 Jun 2009 22:26:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.oraclealchemist.com/news/trick-4-pull-xml-with-dbms_xmlgen/#comment-44122</guid>
		<description>I am encountering a problem in that I use rpad(field.name,4, &#039; &#039;) in my query and when the sql encounters the first &#039; it thinks it is at the end of the script and wants a right parenth.  My sql hasa the &#039; in numerous places and I cannot seem to get around this.  any suggestions?

Thanks
Ron</description>
		<content:encoded><![CDATA[<p>I am encountering a problem in that I use rpad(field.name,4, &#8216; &#8216;) in my query and when the sql encounters the first &#8216; it thinks it is at the end of the script and wants a right parenth.  My sql hasa the &#8216; in numerous places and I cannot seem to get around this.  any suggestions?</p>
<p>Thanks<br />
Ron</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle</title>
		<link>http://www.oraclealchemist.com/news/trick-4-pull-xml-with-dbms_xmlgen/comment-page-1/#comment-44074</link>
		<dc:creator>Kyle</dc:creator>
		<pubDate>Fri, 08 May 2009 23:46:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.oraclealchemist.com/news/trick-4-pull-xml-with-dbms_xmlgen/#comment-44074</guid>
		<description>I want to know if RSS feeds can be directly taken into an oracle table.  How would I import an RSS feed since it is XML?  Would I have to put the RSS feed into a file first or could it be realtime?</description>
		<content:encoded><![CDATA[<p>I want to know if RSS feeds can be directly taken into an oracle table.  How would I import an RSS feed since it is XML?  Would I have to put the RSS feed into a file first or could it be realtime?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toni</title>
		<link>http://www.oraclealchemist.com/news/trick-4-pull-xml-with-dbms_xmlgen/comment-page-1/#comment-44067</link>
		<dc:creator>Toni</dc:creator>
		<pubDate>Thu, 26 Mar 2009 20:30:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.oraclealchemist.com/news/trick-4-pull-xml-with-dbms_xmlgen/#comment-44067</guid>
		<description>I thought this explanation was awesome. Straigtforward how to - what a concept!
I am new to xml publisher and just plain old xml. I&#039;m trying to run the following but there additional quotes makes it cough - suggestions? 
set pages 0
set linesize 150
set long 999999999
set head off
select dbms_xmlgen.getxmltype(&quot;select distinct a.business_unit, a.account, a.operating_unit, a.monetary_amount, a.journal_date, c.category_descr 
from  owner.ps_jrnl_ln a, owner.ps_sch_energy_acct b, owner.ps_sch_energy_catg c, owner.ps_jrnl_header d
where a.business_unit = b.setid
and   a.account = &#039;50102&#039;
and   a.account = b.account
and   a.operating_unit in(&#039;117&#039;,&#039;118&#039;,&#039;133&#039;,&#039;136&#039;,&#039;173&#039;,&#039;191&#039;,&#039;703&#039;,&#039;706&#039;,&#039;721&#039;,&#039;754&#039;)
and   b.CATEGORY_TYPE = c.CATEGORY_TYPE&quot;) xml from dual;</description>
		<content:encoded><![CDATA[<p>I thought this explanation was awesome. Straigtforward how to &#8211; what a concept!<br />
I am new to xml publisher and just plain old xml. I&#8217;m trying to run the following but there additional quotes makes it cough &#8211; suggestions?<br />
set pages 0<br />
set linesize 150<br />
set long 999999999<br />
set head off<br />
select dbms_xmlgen.getxmltype(&#8220;select distinct a.business_unit, a.account, a.operating_unit, a.monetary_amount, a.journal_date, c.category_descr<br />
from  owner.ps_jrnl_ln a, owner.ps_sch_energy_acct b, owner.ps_sch_energy_catg c, owner.ps_jrnl_header d<br />
where a.business_unit = b.setid<br />
and   a.account = &#8216;50102&#8242;<br />
and   a.account = b.account<br />
and   a.operating_unit in(&#8216;117&#8242;,&#8217;118&#8242;,&#8217;133&#8242;,&#8217;136&#8242;,&#8217;173&#8242;,&#8217;191&#8242;,&#8217;703&#8242;,&#8217;706&#8242;,&#8217;721&#8242;,&#8217;754&#8242;)<br />
and   b.CATEGORY_TYPE = c.CATEGORY_TYPE&#8221;) xml from dual;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neeraj</title>
		<link>http://www.oraclealchemist.com/news/trick-4-pull-xml-with-dbms_xmlgen/comment-page-1/#comment-44065</link>
		<dc:creator>Neeraj</dc:creator>
		<pubDate>Thu, 19 Mar 2009 15:08:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.oraclealchemist.com/news/trick-4-pull-xml-with-dbms_xmlgen/#comment-44065</guid>
		<description>Hi,

I ran the following  as an sql file :

set serveroutput 
set long 2000000000                                                             
set pagesize 0 
set pages 0                                                                 
set linesize 150                                                                
set buffer 6000000
set echo off                                                                    
set heading off                                                                 
set underline off                                                               
set trimspool off                                                               
spool C:\Neeraj\SQLPLUS\Exported_Data\ACE_DATA.xml                              
select dbms_xmlgen.getXML(&#039;select * from SK101468_190.ACE_DATA&#039;) from dual;                                                                       
spool off                                                                       
set echo on                                                                     
set heading on                                                                  
set underline on                                                                
set trimspool on                                                                

It produces xml that can be opened using IE..only if I run it using PL/SQL developer..when I run it using SQL*Plus..it produces xml..but IE throws an error when opening this xml..at somepoint...showing the ending tag is wrapped down..so invalid tag</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I ran the following  as an sql file :</p>
<p>set serveroutput<br />
set long 2000000000<br />
set pagesize 0<br />
set pages 0<br />
set linesize 150<br />
set buffer 6000000<br />
set echo off<br />
set heading off<br />
set underline off<br />
set trimspool off<br />
spool C:\Neeraj\SQLPLUS\Exported_Data\ACE_DATA.xml<br />
select dbms_xmlgen.getXML(&#8217;select * from SK101468_190.ACE_DATA&#8217;) from dual;<br />
spool off<br />
set echo on<br />
set heading on<br />
set underline on<br />
set trimspool on                                                                </p>
<p>It produces xml that can be opened using IE..only if I run it using PL/SQL developer..when I run it using SQL*Plus..it produces xml..but IE throws an error when opening this xml..at somepoint&#8230;showing the ending tag is wrapped down..so invalid tag</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gopi</title>
		<link>http://www.oraclealchemist.com/news/trick-4-pull-xml-with-dbms_xmlgen/comment-page-1/#comment-44064</link>
		<dc:creator>Gopi</dc:creator>
		<pubDate>Wed, 18 Mar 2009 03:39:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.oraclealchemist.com/news/trick-4-pull-xml-with-dbms_xmlgen/#comment-44064</guid>
		<description>can we convert Dtd to xml</description>
		<content:encoded><![CDATA[<p>can we convert Dtd to xml</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tanu</title>
		<link>http://www.oraclealchemist.com/news/trick-4-pull-xml-with-dbms_xmlgen/comment-page-1/#comment-44056</link>
		<dc:creator>Tanu</dc:creator>
		<pubDate>Wed, 11 Feb 2009 22:17:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.oraclealchemist.com/news/trick-4-pull-xml-with-dbms_xmlgen/#comment-44056</guid>
		<description>Hey,

Can you please explain the procedures of the package in detail.

Thanks.!</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>Can you please explain the procedures of the package in detail.</p>
<p>Thanks.!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ravikumar</title>
		<link>http://www.oraclealchemist.com/news/trick-4-pull-xml-with-dbms_xmlgen/comment-page-1/#comment-43972</link>
		<dc:creator>ravikumar</dc:creator>
		<pubDate>Thu, 18 Sep 2008 18:35:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.oraclealchemist.com/news/trick-4-pull-xml-with-dbms_xmlgen/#comment-43972</guid>
		<description>Good Post.. I have been trying in vain to remove the &#039;_ROW&#039; tag that is displayed in the sub nodes. I know it differentiates the different rows. But my requirement is such that I need to remove the &#039;_ROW&#039; tag.

Can someone help me find a way ?? It&#039;s urgent for me.</description>
		<content:encoded><![CDATA[<p>Good Post.. I have been trying in vain to remove the &#8216;_ROW&#8217; tag that is displayed in the sub nodes. I know it differentiates the different rows. But my requirement is such that I need to remove the &#8216;_ROW&#8217; tag.</p>
<p>Can someone help me find a way ?? It&#8217;s urgent for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://www.oraclealchemist.com/news/trick-4-pull-xml-with-dbms_xmlgen/comment-page-1/#comment-43964</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Wed, 20 Aug 2008 10:48:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.oraclealchemist.com/news/trick-4-pull-xml-with-dbms_xmlgen/#comment-43964</guid>
		<description>Your suggestion of setting in sql*plus the following parameters

set pages 0
set linesize 150
set long 9999999
set head off

Worked perfectly.

Thank you for a clear and precise explanation of how to get XML data out of Oracle - Now why can Oracle not do anything this simple and efficient to show how their technologies work?

Cheers,
Daniel</description>
		<content:encoded><![CDATA[<p>Your suggestion of setting in sql*plus the following parameters</p>
<p>set pages 0<br />
set linesize 150<br />
set long 9999999<br />
set head off</p>
<p>Worked perfectly.</p>
<p>Thank you for a clear and precise explanation of how to get XML data out of Oracle &#8211; Now why can Oracle not do anything this simple and efficient to show how their technologies work?</p>
<p>Cheers,<br />
Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vish</title>
		<link>http://www.oraclealchemist.com/news/trick-4-pull-xml-with-dbms_xmlgen/comment-page-1/#comment-43945</link>
		<dc:creator>Vish</dc:creator>
		<pubDate>Mon, 04 Aug 2008 16:14:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.oraclealchemist.com/news/trick-4-pull-xml-with-dbms_xmlgen/#comment-43945</guid>
		<description>Hi there,

             I have been toying with XML file generation thru dbms_xmlgen.NewContext but have been having problems suppressing multiple tags. I have something like the following-
dbms_xmlgen.newcontext(&#039;SELECT /*+ FIRST_ROWS PARALLEL(a11,16) PARALLEL(a12, 16) */ XMLELEMENT(&quot;provider&quot;, XMLForest(DECODE(a13.HOSPITAL_ID,&#039;&#039;C&#039;&#039;,110078,&#039;&#039;E&#039;&#039;,110010) as &quot;provider-id&quot;),XMLELEMENT( &quot;patient&quot;, XMLForest ( a111.PATIENT_FIRST_NM  &quot;first-name&quot;, a111.PATIENT_LAST_NM  &quot;last-name&quot; ),XMLELEMENT(&quot;encounter&quot;, XMLATTRIBUTES ( &#039;&#039;HOP-SURGERY&#039;&#039; AS &quot;measure-set&quot;),
XMLForest ( a113.DAY_ADMIT_DESC as &quot;encounter-date&quot;,a110.PLAN_INSURANCE_CARD_NBR &quot;patient-HIC-Number&quot;,   a111.PATIENT_ID as &quot;patient-id&quot;, a12.MEDICAL_RECORD_NBR  as &quot;medical-record-nbr&quot;)
                            ))) as &quot;provider&quot; FROM ....&#039;);
When I write the XML Doc to a table, I get multiple &quot;provider&quot; tags in the document. I have defined setrowsettag to be &quot;provider&quot; but in addition to this I am getting the two embedded labels as well. How do I suppress them from showing up at all?  All I want is just one tag defined in the setrowsettag.

Please help!!

VR</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>             I have been toying with XML file generation thru dbms_xmlgen.NewContext but have been having problems suppressing multiple tags. I have something like the following-<br />
dbms_xmlgen.newcontext(&#8216;SELECT /*+ FIRST_ROWS PARALLEL(a11,16) PARALLEL(a12, 16) */ XMLELEMENT(&#8220;provider&#8221;, XMLForest(DECODE(a13.HOSPITAL_ID,&#8221;C&#8221;,110078,&#8221;E&#8221;,110010) as &#8220;provider-id&#8221;),XMLELEMENT( &#8220;patient&#8221;, XMLForest ( a111.PATIENT_FIRST_NM  &#8220;first-name&#8221;, a111.PATIENT_LAST_NM  &#8220;last-name&#8221; ),XMLELEMENT(&#8220;encounter&#8221;, XMLATTRIBUTES ( &#8221;HOP-SURGERY&#8221; AS &#8220;measure-set&#8221;),<br />
XMLForest ( a113.DAY_ADMIT_DESC as &#8220;encounter-date&#8221;,a110.PLAN_INSURANCE_CARD_NBR &#8220;patient-HIC-Number&#8221;,   a111.PATIENT_ID as &#8220;patient-id&#8221;, a12.MEDICAL_RECORD_NBR  as &#8220;medical-record-nbr&#8221;)<br />
                            ))) as &#8220;provider&#8221; FROM &#8230;.&#8217;);<br />
When I write the XML Doc to a table, I get multiple &#8220;provider&#8221; tags in the document. I have defined setrowsettag to be &#8220;provider&#8221; but in addition to this I am getting the two embedded labels as well. How do I suppress them from showing up at all?  All I want is just one tag defined in the setrowsettag.</p>
<p>Please help!!</p>
<p>VR</p>
]]></content:encoded>
	</item>
</channel>
</rss>
