<?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: XML output as string in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/XML-output-as-string/m-p/2200775#M3133</link>
    <description>I have created some XML output using the AdvancedFileOutputXML component, now I want the entire XML output to be inserted into an XML field in the database:
&lt;BR /&gt;example:
&lt;BR /&gt;&amp;lt;?xml version="1.0"&amp;gt;
&lt;BR /&gt;&amp;lt;directory&amp;gt;
&lt;BR /&gt; &amp;lt;person @id="1"&amp;gt;
&lt;BR /&gt; &amp;lt;first_name&amp;gt;Arthur&amp;lt;/first_name&amp;gt;
&lt;BR /&gt; &amp;lt;last_name&amp;gt;Daly&amp;lt;/last_name&amp;gt;
&lt;BR /&gt; &amp;lt;age&amp;gt;49&amp;lt;/age&amp;gt;
&lt;BR /&gt; &amp;lt;sex&amp;gt;often&amp;lt;/sex&amp;gt;
&lt;BR /&gt; &amp;lt;addresses&amp;gt;
&lt;BR /&gt; &amp;lt;address @name="Home"&amp;gt;
&lt;BR /&gt; &amp;lt;address1&amp;gt;11 London Road&amp;lt;/address1&amp;gt;
&lt;BR /&gt; &amp;lt;City&amp;gt;London&amp;lt;/City&amp;gt;
&lt;BR /&gt; &amp;lt;Country&amp;gt;GB&amp;lt;/Country&amp;gt;
&lt;BR /&gt; &amp;lt;/address&amp;gt;
&lt;BR /&gt; &amp;lt;address @name="Work"&amp;gt;
&lt;BR /&gt; &amp;lt;address1&amp;gt;135 Bath Road&amp;lt;/address1&amp;gt;
&lt;BR /&gt; &amp;lt;City&amp;gt;London&amp;lt;/City&amp;gt;
&lt;BR /&gt; &amp;lt;Country&amp;gt;GB&amp;lt;/Country&amp;gt;
&lt;BR /&gt; &amp;lt;/address&amp;gt;
&lt;BR /&gt; &amp;lt;/addresses&amp;gt;
&lt;BR /&gt; &amp;lt;/person&amp;gt;
&lt;BR /&gt;&amp;lt;/directory&amp;gt;
&lt;BR /&gt;
&lt;BR /&gt;In the database:
&lt;BR /&gt;create table DailyInventory(
&lt;BR /&gt; Id int identity(1,1) not null constraint PK_DailyInventory primary key clustered,
&lt;BR /&gt; Date datetime identity(1,1) not null,
&lt;BR /&gt; Inventory xml not null
&lt;BR /&gt;)
&lt;BR /&gt;Now I want to insert the XML into the table as described above, for example:
&lt;BR /&gt;insert into DailyInventory (Date, Inventory) values (getdate(), '&amp;lt;?xml version="1.0"&amp;gt;
&lt;BR /&gt;&amp;lt;directory&amp;gt;
&lt;BR /&gt; &amp;lt;person @id="1"&amp;gt;
&lt;BR /&gt; &amp;lt;first_name&amp;gt;Arthur&amp;lt;/first_name&amp;gt;
&lt;BR /&gt; &amp;lt;last_name&amp;gt;Daly&amp;lt;/last_name&amp;gt;
&lt;BR /&gt; &amp;lt;age&amp;gt;49&amp;lt;/age&amp;gt;
&lt;BR /&gt; &amp;lt;sex&amp;gt;often&amp;lt;/sex&amp;gt;
&lt;BR /&gt; &amp;lt;addresses&amp;gt;
&lt;BR /&gt; &amp;lt;address @name="Home"&amp;gt;
&lt;BR /&gt; &amp;lt;address1&amp;gt;11 London Road&amp;lt;/address1&amp;gt;
&lt;BR /&gt; &amp;lt;City&amp;gt;London&amp;lt;/City&amp;gt;
&lt;BR /&gt; &amp;lt;Country&amp;gt;GB&amp;lt;/Country&amp;gt;
&lt;BR /&gt; &amp;lt;/address&amp;gt;
&lt;BR /&gt; &amp;lt;address @name="Work"&amp;gt;
&lt;BR /&gt; &amp;lt;address1&amp;gt;135 Bath Road&amp;lt;/address1&amp;gt;
&lt;BR /&gt; &amp;lt;City&amp;gt;London&amp;lt;/City&amp;gt;
&lt;BR /&gt; &amp;lt;Country&amp;gt;GB&amp;lt;/Country&amp;gt;
&lt;BR /&gt; &amp;lt;/address&amp;gt;
&lt;BR /&gt; &amp;lt;/addresses&amp;gt;
&lt;BR /&gt; &amp;lt;/person&amp;gt;
&lt;BR /&gt;&amp;lt;/directory&amp;gt;')
&lt;BR /&gt;
&lt;BR /&gt;The tWriteXMLField component is not the component I need, I need a component that will read the contents of a file and store it into a single variable which can be passed to other objects as a single string. Is there a way to do this?</description>
    <pubDate>Fri, 08 Apr 2011 12:28:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-04-08T12:28:21Z</dc:date>
    <item>
      <title>XML output as string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-output-as-string/m-p/2200770#M3128</link>
      <description>Hi&lt;BR /&gt;I am working on project which need to be output as csv and xml file. &lt;BR /&gt;However the XML file or data from this file to be change to variable (string) which I will use or execute in my store procedure in SQL database. &lt;BR /&gt;Is anyone has idea is any component in talend which I can use to do this or any way for this to be done.&lt;BR /&gt;Thanks&lt;BR /&gt;Zeljka</description>
      <pubDate>Sat, 16 Nov 2024 12:59:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-output-as-string/m-p/2200770#M3128</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: XML output as string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-output-as-string/m-p/2200771#M3129</link>
      <description>Hi
&lt;BR /&gt;I think the tWriteXMLField component fit your need.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 07 Apr 2011 03:48:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-output-as-string/m-p/2200771#M3129</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-07T03:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: XML output as string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-output-as-string/m-p/2200772#M3130</link>
      <description>Hi Shong, 
&lt;BR /&gt;I have look your componet and not sure that one is really right one. 
&lt;BR /&gt;could you please see my job and you will see that for my output I am having tAdvanceFileOutput and from that output I need to create variable (string) which I will use in SQL Database</description>
      <pubDate>Thu, 07 Apr 2011 12:23:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-output-as-string/m-p/2200772#M3130</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-07T12:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: XML output as string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-output-as-string/m-p/2200773#M3131</link>
      <description>Hi
&lt;BR /&gt;Yes, the tWriteXMLField component fit your need, use a tWriteXMLField instead of tAdvanceFileOutputXML to output a string and store it to context variable or global variable, and then you can use it on other component. Please read the user documentation and learn the tWriteXMLField usage.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 07 Apr 2011 12:48:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-output-as-string/m-p/2200773#M3131</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-07T12:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: XML output as string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-output-as-string/m-p/2200774#M3132</link>
      <description>Thanks &lt;BR /&gt;Will try</description>
      <pubDate>Thu, 07 Apr 2011 18:21:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-output-as-string/m-p/2200774#M3132</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-07T18:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: XML output as string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-output-as-string/m-p/2200775#M3133</link>
      <description>I have created some XML output using the AdvancedFileOutputXML component, now I want the entire XML output to be inserted into an XML field in the database:
&lt;BR /&gt;example:
&lt;BR /&gt;&amp;lt;?xml version="1.0"&amp;gt;
&lt;BR /&gt;&amp;lt;directory&amp;gt;
&lt;BR /&gt; &amp;lt;person @id="1"&amp;gt;
&lt;BR /&gt; &amp;lt;first_name&amp;gt;Arthur&amp;lt;/first_name&amp;gt;
&lt;BR /&gt; &amp;lt;last_name&amp;gt;Daly&amp;lt;/last_name&amp;gt;
&lt;BR /&gt; &amp;lt;age&amp;gt;49&amp;lt;/age&amp;gt;
&lt;BR /&gt; &amp;lt;sex&amp;gt;often&amp;lt;/sex&amp;gt;
&lt;BR /&gt; &amp;lt;addresses&amp;gt;
&lt;BR /&gt; &amp;lt;address @name="Home"&amp;gt;
&lt;BR /&gt; &amp;lt;address1&amp;gt;11 London Road&amp;lt;/address1&amp;gt;
&lt;BR /&gt; &amp;lt;City&amp;gt;London&amp;lt;/City&amp;gt;
&lt;BR /&gt; &amp;lt;Country&amp;gt;GB&amp;lt;/Country&amp;gt;
&lt;BR /&gt; &amp;lt;/address&amp;gt;
&lt;BR /&gt; &amp;lt;address @name="Work"&amp;gt;
&lt;BR /&gt; &amp;lt;address1&amp;gt;135 Bath Road&amp;lt;/address1&amp;gt;
&lt;BR /&gt; &amp;lt;City&amp;gt;London&amp;lt;/City&amp;gt;
&lt;BR /&gt; &amp;lt;Country&amp;gt;GB&amp;lt;/Country&amp;gt;
&lt;BR /&gt; &amp;lt;/address&amp;gt;
&lt;BR /&gt; &amp;lt;/addresses&amp;gt;
&lt;BR /&gt; &amp;lt;/person&amp;gt;
&lt;BR /&gt;&amp;lt;/directory&amp;gt;
&lt;BR /&gt;
&lt;BR /&gt;In the database:
&lt;BR /&gt;create table DailyInventory(
&lt;BR /&gt; Id int identity(1,1) not null constraint PK_DailyInventory primary key clustered,
&lt;BR /&gt; Date datetime identity(1,1) not null,
&lt;BR /&gt; Inventory xml not null
&lt;BR /&gt;)
&lt;BR /&gt;Now I want to insert the XML into the table as described above, for example:
&lt;BR /&gt;insert into DailyInventory (Date, Inventory) values (getdate(), '&amp;lt;?xml version="1.0"&amp;gt;
&lt;BR /&gt;&amp;lt;directory&amp;gt;
&lt;BR /&gt; &amp;lt;person @id="1"&amp;gt;
&lt;BR /&gt; &amp;lt;first_name&amp;gt;Arthur&amp;lt;/first_name&amp;gt;
&lt;BR /&gt; &amp;lt;last_name&amp;gt;Daly&amp;lt;/last_name&amp;gt;
&lt;BR /&gt; &amp;lt;age&amp;gt;49&amp;lt;/age&amp;gt;
&lt;BR /&gt; &amp;lt;sex&amp;gt;often&amp;lt;/sex&amp;gt;
&lt;BR /&gt; &amp;lt;addresses&amp;gt;
&lt;BR /&gt; &amp;lt;address @name="Home"&amp;gt;
&lt;BR /&gt; &amp;lt;address1&amp;gt;11 London Road&amp;lt;/address1&amp;gt;
&lt;BR /&gt; &amp;lt;City&amp;gt;London&amp;lt;/City&amp;gt;
&lt;BR /&gt; &amp;lt;Country&amp;gt;GB&amp;lt;/Country&amp;gt;
&lt;BR /&gt; &amp;lt;/address&amp;gt;
&lt;BR /&gt; &amp;lt;address @name="Work"&amp;gt;
&lt;BR /&gt; &amp;lt;address1&amp;gt;135 Bath Road&amp;lt;/address1&amp;gt;
&lt;BR /&gt; &amp;lt;City&amp;gt;London&amp;lt;/City&amp;gt;
&lt;BR /&gt; &amp;lt;Country&amp;gt;GB&amp;lt;/Country&amp;gt;
&lt;BR /&gt; &amp;lt;/address&amp;gt;
&lt;BR /&gt; &amp;lt;/addresses&amp;gt;
&lt;BR /&gt; &amp;lt;/person&amp;gt;
&lt;BR /&gt;&amp;lt;/directory&amp;gt;')
&lt;BR /&gt;
&lt;BR /&gt;The tWriteXMLField component is not the component I need, I need a component that will read the contents of a file and store it into a single variable which can be passed to other objects as a single string. Is there a way to do this?</description>
      <pubDate>Fri, 08 Apr 2011 12:28:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-output-as-string/m-p/2200775#M3133</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-08T12:28:21Z</dc:date>
    </item>
  </channel>
</rss>

