<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Extract Information from a XML-File which is stored as a row in Oracle in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Extract-Information-from-a-XML-File-which-is-stored-as-a-row-in/m-p/2212274#M9963</link>
    <description>Hello, &lt;BR /&gt;Your job should looks like &lt;BR /&gt;tOracleInput -&amp;gt; tParseXMLRow -&amp;gt; tOracleOutput&lt;BR /&gt;Configure your tParseXMLRow to parse the xml_data column with "buzz-company-data/company" as loop.&lt;BR /&gt;HTH,</description>
    <pubDate>Fri, 31 Oct 2008 20:09:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-10-31T20:09:08Z</dc:date>
    <item>
      <title>Extract Information from a XML-File which is stored as a row in Oracle</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-Information-from-a-XML-File-which-is-stored-as-a-row-in/m-p/2212273#M9962</link>
      <description>Dears, 
&lt;BR /&gt; 
&lt;BR /&gt;I have a table in oracle DataBase which stores XML file. I want to parse this XML column and populate the output to another table. Can anyone please help me this regard. 
&lt;BR /&gt;Source Table: 
&lt;BR /&gt; 
&lt;BR /&gt;CREATE TABLE XML_TAB 
&lt;BR /&gt;(rid NUMBER(5), 
&lt;BR /&gt; xml_data XMLTYPE); 
&lt;BR /&gt; 
&lt;BR /&gt;INSERT INTO xml_tab 
&lt;BR /&gt; (rid, 
&lt;BR /&gt; xml_data 
&lt;BR /&gt; ) 
&lt;BR /&gt; VALUES (1, 
&lt;BR /&gt; XMLTYPE 
&lt;BR /&gt; ('&amp;lt;buzz-company-data&amp;gt; 
&lt;BR /&gt; &amp;lt;company&amp;gt; 
&lt;BR /&gt; &amp;lt;name&amp;gt;AT n T&amp;lt;/name&amp;gt; 
&lt;BR /&gt; &amp;lt;industry&amp;gt;Telcom&amp;lt;/industry&amp;gt; 
&lt;BR /&gt; &amp;lt;date&amp;gt;6/8/2008&amp;lt;/date&amp;gt; 
&lt;BR /&gt; &amp;lt;volume&amp;gt;250&amp;lt;/volume&amp;gt; 
&lt;BR /&gt; &amp;lt;cgmtype&amp;gt;blog&amp;lt;/cgmtype&amp;gt; 
&lt;BR /&gt; &amp;lt;/company&amp;gt; 
&lt;BR /&gt; &amp;lt;company&amp;gt; 
&lt;BR /&gt; &amp;lt;name&amp;gt;Sprint&amp;lt;/name&amp;gt; 
&lt;BR /&gt; &amp;lt;industry&amp;gt;Telcom&amp;lt;/industry&amp;gt; 
&lt;BR /&gt; &amp;lt;date&amp;gt;6/9/2008&amp;lt;/date&amp;gt; 
&lt;BR /&gt; &amp;lt;volume&amp;gt;150&amp;lt;/volume&amp;gt; 
&lt;BR /&gt; &amp;lt;cgmtype&amp;gt;forum&amp;lt;/cgmtype&amp;gt; 
&lt;BR /&gt; &amp;lt;/company&amp;gt; 
&lt;BR /&gt; &amp;lt;company&amp;gt; 
&lt;BR /&gt; &amp;lt;name&amp;gt;Motorola&amp;lt;/name&amp;gt; 
&lt;BR /&gt; &amp;lt;industry&amp;gt;Telcom&amp;lt;/industry&amp;gt; 
&lt;BR /&gt; &amp;lt;date&amp;gt;6/8/2008&amp;lt;/date&amp;gt; 
&lt;BR /&gt; &amp;lt;volume&amp;gt;50&amp;lt;/volume&amp;gt; 
&lt;BR /&gt; &amp;lt;cgmtype&amp;gt;blog&amp;lt;/cgmtype&amp;gt; 
&lt;BR /&gt; &amp;lt;/company&amp;gt; 
&lt;BR /&gt;&amp;lt;/buzz-company-data&amp;gt;') 
&lt;BR /&gt; ); 
&lt;BR /&gt;COMMIT ; 
&lt;BR /&gt; 
&lt;BR /&gt;Target Table : 
&lt;BR /&gt;CREATE TABLE XML_DATA 
&lt;BR /&gt;( 
&lt;BR /&gt; NAME VARCHAR2(100 BYTE), 
&lt;BR /&gt; INDUSTRY VARCHAR2(100 BYTE), 
&lt;BR /&gt; VOLUME NUMBER, 
&lt;BR /&gt; DATE1 DATE, 
&lt;BR /&gt; CGMTYPE VARCHAR2(100 BYTE) 
&lt;BR /&gt;) 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Ram</description>
      <pubDate>Sat, 16 Nov 2024 14:10:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-Information-from-a-XML-File-which-is-stored-as-a-row-in/m-p/2212273#M9962</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Information from a XML-File which is stored as a row in Oracle</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-Information-from-a-XML-File-which-is-stored-as-a-row-in/m-p/2212274#M9963</link>
      <description>Hello, &lt;BR /&gt;Your job should looks like &lt;BR /&gt;tOracleInput -&amp;gt; tParseXMLRow -&amp;gt; tOracleOutput&lt;BR /&gt;Configure your tParseXMLRow to parse the xml_data column with "buzz-company-data/company" as loop.&lt;BR /&gt;HTH,</description>
      <pubDate>Fri, 31 Oct 2008 20:09:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-Information-from-a-XML-File-which-is-stored-as-a-row-in/m-p/2212274#M9963</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-10-31T20:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Information from a XML-File which is stored as a row in Oracle</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-Information-from-a-XML-File-which-is-stored-as-a-row-in/m-p/2212275#M9964</link>
      <description>Hi ,
&lt;BR /&gt;As per your suggestion i tried, but I am getting a Null pointer exception. can you please help me in this regard. I have also attached screen shot for your kind perusal.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Ram
&lt;BR /&gt;Error Message:
&lt;BR /&gt;Starting job Sunny_XML_Data at 08:55 03/11/2008.
&lt;BR /&gt; connecting to socket on port 4237
&lt;BR /&gt; connected
&lt;BR /&gt; connecting to socket on port 4424
&lt;BR /&gt; connected
&lt;BR /&gt;Exception in component tParseXMLRow_1
&lt;BR /&gt;java.lang.NullPointerException
&lt;BR /&gt; at java.io.StringReader.&amp;lt;init&amp;gt;(StringReader.java:33)
&lt;BR /&gt; at test.sunny_xml_data_0_1.Sunny_XML_Data.tOracleInput_1Process(Sunny_XML_Data.java:986)
&lt;BR /&gt; at test.sunny_xml_data_0_1.Sunny_XML_Data.runJobInTOS(Sunny_XML_Data.java:1450)
&lt;BR /&gt; at test.sunny_xml_data_0_1.Sunny_XML_Data.main(Sunny_XML_Data.java:1352)
&lt;BR /&gt; disconnected
&lt;BR /&gt; disconnected
&lt;BR /&gt;Job Sunny_XML_Data ended at 08:55 03/11/2008.</description>
      <pubDate>Mon, 03 Nov 2008 04:01:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-Information-from-a-XML-File-which-is-stored-as-a-row-in/m-p/2212275#M9964</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-11-03T04:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Information from a XML-File which is stored as a row in Oracle</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-Information-from-a-XML-File-which-is-stored-as-a-row-in/m-p/2212276#M9965</link>
      <description>Hi Ram,
&lt;BR /&gt;can you please check the generated code in the following line: Sunny_XML_Data.java:
&lt;B&gt;986&lt;/B&gt;
&lt;BR /&gt;And what is your TOS version?
&lt;BR /&gt;Did the problem raise with your posted testdata? If so, I could try to reproduce it. 
&lt;BR /&gt;Bye
&lt;BR /&gt;Volker</description>
      <pubDate>Tue, 04 Nov 2008 05:35:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-Information-from-a-XML-File-which-is-stored-as-a-row-in/m-p/2212276#M9965</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-11-04T05:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Information from a XML-File which is stored as a row in Oracle</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-Information-from-a-XML-File-which-is-stored-as-a-row-in/m-p/2212277#M9966</link>
      <description>Dear Volker,
&lt;BR /&gt; Thanks for your quick reply.
&lt;BR /&gt; Code at Sunny_XML_Data.java:986 : .read(new java.io.StringReader(xmlStr_tParseXMLRow_1)). 
&lt;BR /&gt; Version : TOS 2.4.1.r16077(Even In version TOS 3.0 i am getting this same error).
&lt;BR /&gt; Yes you can try it with the data that i have posted.
&lt;BR /&gt;Note : when I change the data type in database to CLOB. I am able to extract the data successfully. I am getting this error only for XMLTYPE data type. To my little knowledge in Talend, I think it is not possible to read XMLTYPE data type in oracle using Talend. If you think my statement is wrong kindly correct me. Thanks in advance. I have also attached the screen shot for your kind perusal.
&lt;BR /&gt;Table Used :
&lt;BR /&gt;SQL&amp;gt; desc xml_ram
&lt;BR /&gt; Name Null? Type
&lt;BR /&gt; ----------------------------------------- -------- ---------
&lt;BR /&gt; XML_DATA CLOB
&lt;BR /&gt;Table that has been referred in the Below job is : xml_ram.</description>
      <pubDate>Tue, 04 Nov 2008 08:01:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-Information-from-a-XML-File-which-is-stored-as-a-row-in/m-p/2212277#M9966</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-11-04T08:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Information from a XML-File which is stored as a row in Oracle</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-Information-from-a-XML-File-which-is-stored-as-a-row-in/m-p/2212278#M9967</link>
      <description>Hi Ram, 
&lt;BR /&gt;sorry for the late post. I do not have access to oracle to create a testcase and it sounds like a specialty of the oracle data. So I could only try to give some ideas what to check. 
&lt;BR /&gt;The first step I would do is to create a simple job read the column and try to dump it on screen with tLogRow or tJavaRow. Take a look if there are different results, how are null values handled... Then try to use tParseXMLRow again. Is it working in the simple job? Working for some rows? And so on. 
&lt;BR /&gt;Hope this helps. 
&lt;BR /&gt;Bye 
&lt;BR /&gt;Volker</description>
      <pubDate>Sun, 09 Nov 2008 21:31:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-Information-from-a-XML-File-which-is-stored-as-a-row-in/m-p/2212278#M9967</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-11-09T21:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Information from a XML-File which is stored as a row in Oracle</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-Information-from-a-XML-File-which-is-stored-as-a-row-in/m-p/2212279#M9968</link>
      <description>Dear Volker,
&lt;BR /&gt; sorry for the late response. As per your suggestion I have created a job, but still I am getting the same error message. As I mentioned earlier in my post Talend is not able to read XMLTYPE datatype in oracle. Please correct me if I am wrong. I am not able to attach scrren shot. Thanks in advance.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Ram</description>
      <pubDate>Tue, 11 Nov 2008 13:14:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-Information-from-a-XML-File-which-is-stored-as-a-row-in/m-p/2212279#M9968</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-11-11T13:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Information from a XML-File which is stored as a row in Oracle</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-Information-from-a-XML-File-which-is-stored-as-a-row-in/m-p/2212280#M9969</link>
      <description>I have seen similar behavior with other 'special' or opaque datatypes such as TIMESTAMP WITH LOCALTIME. The issue is part Talend and part the Oracle jdbc driver. There are some datatypes that wont return natively without some access to the actual Oracle connection object/classes to use Oracle specific calls (you probably need to change tOracleConnection for that) . One way you may be able to work around this without using the Oracle connection object (It worked for me with TIMESTAMP WITH LOCALTIME) Is to let Oracle database convert the value to a return type that the vanilla sql connection object likes. I would try converting your XMLType to a string or clob,etc in the SQL using the getClobVal(), getStringVal(), getBlobVal().  eg:&lt;BR /&gt;SELECT e.getClobVal() FROM xwarehouses e;&lt;BR /&gt;see: &lt;BR /&gt;&lt;A href="http://www.acs.ilstu.edu/docs/oracle/server.101/b10759/ap_examples002.htm" rel="nofollow noopener noreferrer"&gt;http://www.acs.ilstu.edu/docs/oracle/server.101/b10759/ap_examples002.htm&lt;/A&gt;</description>
      <pubDate>Wed, 12 Nov 2008 00:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-Information-from-a-XML-File-which-is-stored-as-a-row-in/m-p/2212280#M9969</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-11-12T00:19:17Z</dc:date>
    </item>
  </channel>
</rss>

