<?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 XML - Reading data - Parent Elements in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/XML-Reading-data-Parent-Elements/m-p/617305#M227514</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One for the QV XML gurus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In an XML Load statement is it possible to make references to attributes of elements above the table-element in your FROM statement. I want to define my own foreign keys by looking a the ID attribute of the parent element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Apr 2014 16:20:25 GMT</pubDate>
    <dc:creator>DavidFoster1</dc:creator>
    <dc:date>2014-04-24T16:20:25Z</dc:date>
    <item>
      <title>XML - Reading data - Parent Elements</title>
      <link>https://community.qlik.com/t5/QlikView/XML-Reading-data-Parent-Elements/m-p/617305#M227514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One for the QV XML gurus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In an XML Load statement is it possible to make references to attributes of elements above the table-element in your FROM statement. I want to define my own foreign keys by looking a the ID attribute of the parent element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 16:20:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/XML-Reading-data-Parent-Elements/m-p/617305#M227514</guid>
      <dc:creator>DavidFoster1</dc:creator>
      <dc:date>2014-04-24T16:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: XML - Reading data - Parent Elements</title>
      <link>https://community.qlik.com/t5/QlikView/XML-Reading-data-Parent-Elements/m-p/617306#M227515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;I believe that the QlikView&amp;nbsp; XML option will only access TABLE tags.&lt;/P&gt;&lt;P&gt;You could extract the data as text and process it through TEXTBETWEEN functions to extract other tags outside the TABLE tags, possibly with other functions like SUBFIELD to extract the data.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 16:52:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/XML-Reading-data-Parent-Elements/m-p/617306#M227515</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-04-24T16:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: XML - Reading data - Parent Elements</title>
      <link>https://community.qlik.com/t5/QlikView/XML-Reading-data-Parent-Elements/m-p/617307#M227516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is has raised its ugly head again. Any assistance gratefully received.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 09:06:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/XML-Reading-data-Parent-Elements/m-p/617307#M227516</guid>
      <dc:creator>DavidFoster1</dc:creator>
      <dc:date>2014-09-09T09:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: XML - Reading data - Parent Elements</title>
      <link>https://community.qlik.com/t5/QlikView/XML-Reading-data-Parent-Elements/m-p/617308#M227517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not 100% sure on what you are trying to do, but could you amend the xml using the load script like this ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xmlraw: &lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; '&amp;lt;UserPrefs&amp;gt;' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;'&amp;lt;head&amp;gt;'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;autogenerate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; 1;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; '&amp;lt;UserId&amp;gt;abcdef&amp;lt;/UserId&amp;gt;' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;'&amp;lt;head&amp;gt;'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;autogenerate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; 1;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; '&amp;lt;/UserPrefs&amp;gt;' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;'&amp;lt;head&amp;gt;'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;autogenerate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; 1; &lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;@1:n&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;'&amp;lt;head&amp;gt;'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;[AllProperties.xml] (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;fix&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;utf8&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; '&amp;lt;/head&amp;gt;' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;'&amp;lt;head&amp;gt;'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;autogenerate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; 1;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;STORE&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; xmlraw &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;into&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; [AllProperties2.xml] (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;txt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 09:44:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/XML-Reading-data-Parent-Elements/m-p/617308#M227517</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2014-09-09T09:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: XML - Reading data - Parent Elements</title>
      <link>https://community.qlik.com/t5/QlikView/XML-Reading-data-Parent-Elements/m-p/617309#M227518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The approach I have used in the end was to loop through the XML files one by one and use LEFT JOINs using the derived XML keys and the real foreign key to add the keys to the child tables. I did try ApplyMap but I couldn't drop the mapping tables for each loop which caused incorrect mappings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 09:43:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/XML-Reading-data-Parent-Elements/m-p/617309#M227518</guid>
      <dc:creator>DavidFoster1</dc:creator>
      <dc:date>2014-09-11T09:43:10Z</dc:date>
    </item>
  </channel>
</rss>

