<?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 How does the &amp;quot;LOAD from_field&amp;quot; work with xml format ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-does-the-quot-LOAD-from-field-quot-work-with-xml-format/m-p/1259279#M620456</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone help me with the use of the "LOAD from_field" in my script ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will find in attachment a very simple application and its datasource : a csv file which contains 3 rows, and for each row :&lt;/P&gt;&lt;P&gt;- few basic data (rank, name)&lt;/P&gt;&lt;P&gt;- a field "data_as_csv" which could be interpreted as a csv file&lt;/P&gt;&lt;P&gt;- a field "data_as_xml" which contains exactly the same information, but in a xml format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a new table based on this "data_as_xxx", which will contain 3 rows, and for each row, 3 fields T1, T2, T3, using the "LOAD from_field" instruction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no problem with the csv format :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;datasource:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;LOAD rank, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data_as_csv, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data_as_xml&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;FROM example_load_from_field.csv (txt, codepage is 1252, embedded labels, delimiter is ';', msq);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;CSVResult:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;LOAD @1 as T1, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2 as T2, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3 as T3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;From_Field (datasource,data_as_csv) (txt, no labels, delimiter is '|');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I try the same with the xml format instead of the csv format (which is my goal) ...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;XMLResult:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;LOAD T1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; T2,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; T3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;From_Field (datasource,data_as_xml) (xmlSimple, Table is [notes]); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...I've got&amp;nbsp; a "General script error". What's wrong with my code ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've seen that it works when the datasource contains only one row, but I don(t understand why it could works with csv format and not xml one ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jan 2017 17:42:41 GMT</pubDate>
    <dc:creator>slefranc</dc:creator>
    <dc:date>2017-01-30T17:42:41Z</dc:date>
    <item>
      <title>How does the "LOAD from_field" work with xml format ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-the-quot-LOAD-from-field-quot-work-with-xml-format/m-p/1259279#M620456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone help me with the use of the "LOAD from_field" in my script ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will find in attachment a very simple application and its datasource : a csv file which contains 3 rows, and for each row :&lt;/P&gt;&lt;P&gt;- few basic data (rank, name)&lt;/P&gt;&lt;P&gt;- a field "data_as_csv" which could be interpreted as a csv file&lt;/P&gt;&lt;P&gt;- a field "data_as_xml" which contains exactly the same information, but in a xml format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a new table based on this "data_as_xxx", which will contain 3 rows, and for each row, 3 fields T1, T2, T3, using the "LOAD from_field" instruction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no problem with the csv format :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;datasource:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;LOAD rank, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data_as_csv, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data_as_xml&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;FROM example_load_from_field.csv (txt, codepage is 1252, embedded labels, delimiter is ';', msq);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;CSVResult:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;LOAD @1 as T1, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2 as T2, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3 as T3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;From_Field (datasource,data_as_csv) (txt, no labels, delimiter is '|');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I try the same with the xml format instead of the csv format (which is my goal) ...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;XMLResult:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;LOAD T1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; T2,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; T3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;From_Field (datasource,data_as_xml) (xmlSimple, Table is [notes]); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...I've got&amp;nbsp; a "General script error". What's wrong with my code ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've seen that it works when the datasource contains only one row, but I don(t understand why it could works with csv format and not xml one ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 17:42:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-the-quot-LOAD-from-field-quot-work-with-xml-format/m-p/1259279#M620456</guid>
      <dc:creator>slefranc</dc:creator>
      <dc:date>2017-01-30T17:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: How does the "LOAD from_field" work with xml format ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-the-quot-LOAD-from-field-quot-work-with-xml-format/m-p/1259280#M620457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post the xml you are trying to load from?&lt;/P&gt;&lt;P&gt;Have you tried using the data load wizard?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 18:58:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-the-quot-LOAD-from-field-quot-work-with-xml-format/m-p/1259280#M620457</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-01-30T18:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: How does the "LOAD from_field" work with xml format ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-the-quot-LOAD-from-field-quot-work-with-xml-format/m-p/1259281#M620458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.tutorialspoint.com/qlikview/qlikview_xml_file.htm" title="https://www.tutorialspoint.com/qlikview/qlikview_xml_file.htm"&gt;QlikView XML File&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 18:59:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-the-quot-LOAD-from-field-quot-work-with-xml-format/m-p/1259281#M620458</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-01-30T18:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: How does the "LOAD from_field" work with xml format ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-the-quot-LOAD-from-field-quot-work-with-xml-format/m-p/1259282#M620459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The fact is that I don't load one "physical" &lt;SPAN style="font-size: 13.3333px;"&gt;xml &lt;/SPAN&gt;file : I load a datasource with several rows and fields, and one of this fields contains an xml structure (the same structure for each row of my datasource). Tell me if you can't open the csv file I attached on my first post, it will clarify all that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, just to answer to your question, if I make a physical xml file from one of the record of my datasource, I got something like that (see the sample.xml attachment)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;lt;notes&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp; &amp;lt;T1&amp;gt;15&amp;lt;/T1&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp; &amp;lt;T2&amp;gt;10&amp;lt;/T2&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp; &amp;lt;T3&amp;gt;20&amp;lt;/T3&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;lt;/notes&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if I use the wizard to load this sample, I've got :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;// Start of [sample.xml] LOAD statements&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;notes:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;LOAD T1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; T2,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; T3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;FROM [sample.xml] (XmlSimple, Table is [notes]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;// End of [sample.xml] LOAD statements&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which is exactly the code I used, except i use "From_Field" instead of "From [sample.xml]"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 09:38:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-the-quot-LOAD-from-field-quot-work-with-xml-format/m-p/1259282#M620459</guid>
      <dc:creator>slefranc</dc:creator>
      <dc:date>2017-01-31T09:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: How does the "LOAD from_field" work with xml format ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-the-quot-LOAD-from-field-quot-work-with-xml-format/m-p/1259283#M620460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've just find that it was a bug from QV11 (which is the version I use on my laptop). &lt;/P&gt;&lt;P&gt;It's now OK with QV12 : just checked on my Qlikview server.&lt;/P&gt;&lt;P&gt;Problem solved, thx for your help !&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 10:06:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-the-quot-LOAD-from-field-quot-work-with-xml-format/m-p/1259283#M620460</guid>
      <dc:creator>slefranc</dc:creator>
      <dc:date>2017-01-31T10:06:36Z</dc:date>
    </item>
  </channel>
</rss>

