<?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 Problem when loading multiple XML files in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-when-loading-multiple-XML-files/m-p/554987#M207325</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suppose I have the following xml file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_1390468773715358 jive_macro_code" jivemacro_uid="_1390468773715358" modifiedtitle="true"&gt;
&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;person&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;name&amp;gt;Nils Nilsson&amp;lt;/name&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;phones&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;phone&amp;gt;1234567890&amp;lt;/phone&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;phone&amp;gt;0987654321&amp;lt;/phone&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;phone&amp;gt;5555555555&amp;lt;/phone&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;/phones&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/person&amp;gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I import this file in QV, the script would look like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_13904692206767035 jive_macro_code" jivemacro_uid="_13904692206767035" modifiedtitle="true"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;phone:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;LOAD phone%Table,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key_person_F3B1C1055347A9AD&amp;nbsp;&amp;nbsp;&amp;nbsp; // Key to parent table: person&lt;/P&gt;
&lt;P&gt;FROM nils.xml (XmlSimple, Table is [person/phones/phone]);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;person:&lt;/P&gt;
&lt;P&gt;LOAD name,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key_person_F3B1C1055347A9AD&amp;nbsp;&amp;nbsp;&amp;nbsp; // Key for this table: person&lt;/P&gt;
&lt;P&gt;FROM nils.xml (XmlSimple, Table is [person]);&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The load script is split into two sections, since there are multiple phone tags. The key used between the tables is implemented using the &lt;STRONG&gt;%Key_person_F3B1C1055347A9AD&lt;/STRONG&gt; field which is generated automatically. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I have more xml files than nils.xml, and I would like to replace the specific nils.xml file name with *.xml to import them all. The thing is that the unique key between the tables will then no longer be unique and I will be unable to determine which phone numbers belong to which persons. How can I maintain a key between the tables then?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions would be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Uzi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jan 2014 09:36:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-23T09:36:22Z</dc:date>
    <item>
      <title>Problem when loading multiple XML files</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-when-loading-multiple-XML-files/m-p/554987#M207325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suppose I have the following xml file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_1390468773715358 jive_macro_code" jivemacro_uid="_1390468773715358" modifiedtitle="true"&gt;
&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;person&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;name&amp;gt;Nils Nilsson&amp;lt;/name&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;phones&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;phone&amp;gt;1234567890&amp;lt;/phone&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;phone&amp;gt;0987654321&amp;lt;/phone&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;phone&amp;gt;5555555555&amp;lt;/phone&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;/phones&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/person&amp;gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I import this file in QV, the script would look like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_13904692206767035 jive_macro_code" jivemacro_uid="_13904692206767035" modifiedtitle="true"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;phone:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;LOAD phone%Table,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key_person_F3B1C1055347A9AD&amp;nbsp;&amp;nbsp;&amp;nbsp; // Key to parent table: person&lt;/P&gt;
&lt;P&gt;FROM nils.xml (XmlSimple, Table is [person/phones/phone]);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;person:&lt;/P&gt;
&lt;P&gt;LOAD name,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key_person_F3B1C1055347A9AD&amp;nbsp;&amp;nbsp;&amp;nbsp; // Key for this table: person&lt;/P&gt;
&lt;P&gt;FROM nils.xml (XmlSimple, Table is [person]);&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The load script is split into two sections, since there are multiple phone tags. The key used between the tables is implemented using the &lt;STRONG&gt;%Key_person_F3B1C1055347A9AD&lt;/STRONG&gt; field which is generated automatically. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I have more xml files than nils.xml, and I would like to replace the specific nils.xml file name with *.xml to import them all. The thing is that the unique key between the tables will then no longer be unique and I will be unable to determine which phone numbers belong to which persons. How can I maintain a key between the tables then?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions would be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Uzi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 09:36:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-when-loading-multiple-XML-files/m-p/554987#M207325</guid>
      <dc:creator />
      <dc:date>2014-01-23T09:36:22Z</dc:date>
    </item>
  </channel>
</rss>

