<?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: Process to load XML file into Variant Column in Snowflake in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Process-to-load-XML-file-into-Variant-Column-in-Snowflake/m-p/2318871#M89174</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Please try to insert an entire XML into Snowflake via tDBRow component and the sql is this with Prepared Statement :&lt;/P&gt;&lt;P&gt;"INSERT INTO &amp;lt;tablename&amp;gt; SELECT ?, PARSE_XML"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
    <pubDate>Thu, 01 Apr 2021 09:39:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-04-01T09:39:11Z</dc:date>
    <item>
      <title>Process to load XML file into Variant Column in Snowflake</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Process-to-load-XML-file-into-Variant-Column-in-Snowflake/m-p/2318870#M89173</link>
      <description>&lt;P&gt;Looking for some assistance to design a process that loads a complete xml file into a variant column in Snowflake.&amp;nbsp;The xml file exists in Azure Blob storage.&amp;nbsp;Would also need to retrieve a few high level elements from the xml to put into the table along with the complete xml.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The target table would look something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ProcessDatetime DATETIME - The Date the file was loaded into the table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID1 INT - A unique ID value from the below the root node of the xml&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TransactionType VARCHAR(100) - A character value from the root node of the xml that represent the transaction code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID2 INT - Another unique ID value from the below the root node of the xml&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Content VARIANT - Field for whole xml file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that I could use a bulk insert to load the file but not sure the best approach to parse file elements and load the file.&amp;nbsp;Any assistance would be appreciated.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:49:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Process-to-load-XML-file-into-Variant-Column-in-Snowflake/m-p/2318870#M89173</guid>
      <dc:creator>Derek2</dc:creator>
      <dc:date>2024-11-16T00:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Process to load XML file into Variant Column in Snowflake</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Process-to-load-XML-file-into-Variant-Column-in-Snowflake/m-p/2318871#M89174</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Please try to insert an entire XML into Snowflake via tDBRow component and the sql is this with Prepared Statement :&lt;/P&gt;&lt;P&gt;"INSERT INTO &amp;lt;tablename&amp;gt; SELECT ?, PARSE_XML"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 09:39:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Process-to-load-XML-file-into-Variant-Column-in-Snowflake/m-p/2318871#M89174</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-01T09:39:11Z</dc:date>
    </item>
  </channel>
</rss>

