<?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 file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/xml-file/m-p/830129#M656968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert. You are genious.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 May 2015 10:10:54 GMT</pubDate>
    <dc:creator>ashwanin</dc:creator>
    <dc:date>2015-05-22T10:10:54Z</dc:date>
    <item>
      <title>xml file</title>
      <link>https://community.qlik.com/t5/QlikView/xml-file/m-p/830127#M656966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlik Users,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I required the latest XML file from a folder (abc) and want to put the data in a QVD.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;But i am facing&lt;/SPAN&gt;&amp;nbsp; problem with the part Highlighted in bold underline below (in script) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error which i am getting : &lt;STRONG&gt;Load all (*) is not allowed in this file type&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Please tell me what i am doing wrong and how to rectify that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&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;set folder = "abc"&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;for each file in filelist('$(folder)\*.xml')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FileInfo:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Distinct&lt;/P&gt;&lt;P&gt;FileName() as file_name,&lt;/P&gt;&lt;P&gt;FileBaseName() as file_base_name,&lt;/P&gt;&lt;P&gt;FilePath() as file_path,&lt;/P&gt;&lt;P&gt;FileTime() as file_time&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;$(file)&lt;/P&gt;&lt;P&gt;(XmlSimple, Table is [entries/entry]);&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;next file&lt;/P&gt;&lt;P&gt;Qualify *&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LatestFiles:&lt;/P&gt;&lt;P&gt;First(1)&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;resident FileInfo&lt;/P&gt;&lt;P&gt;order by file_time DESC&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;Drop Table FileInfo&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;UNQUALIFY *&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;Let source = fieldname(3, 'LatestFiles')&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;Let source_i = fieldvalue('$(source)',1)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;For i = 1 to NoofRows('LatestFiles')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;[File$(i)]:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Load *,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;'$(source_i)' as $(source)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;$(source_i)&lt;/P&gt;&lt;P&gt;(XmlSimple, Table is [entries/entry]) ;&lt;/P&gt;&lt;P&gt;Let source_i = fieldvalue('$(source)',$(i)+1)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;next i&lt;/P&gt;&lt;P&gt;exit script&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 18:57:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/xml-file/m-p/830127#M656966</guid>
      <dc:creator>ashwanin</dc:creator>
      <dc:date>2015-05-21T18:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: xml file</title>
      <link>https://community.qlik.com/t5/QlikView/xml-file/m-p/830128#M656967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's right. When you load data from an xml file you have to specify all the field names explicitly. The * is not allowed for loads from xml files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 09:34:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/xml-file/m-p/830128#M656967</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-05-22T09:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: xml file</title>
      <link>https://community.qlik.com/t5/QlikView/xml-file/m-p/830129#M656968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert. You are genious.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 10:10:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/xml-file/m-p/830129#M656968</guid>
      <dc:creator>ashwanin</dc:creator>
      <dc:date>2015-05-22T10:10:54Z</dc:date>
    </item>
  </channel>
</rss>

