<?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 Loading in Attribute Centric XML in QlikView Load Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-in-Attribute-Centric-XML-in-QlikView-Load-Script/m-p/358989#M704828</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;I got a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically loading 1 attribute value at a time using Where and then joining the attributes based on a RowNo() key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ProfileDefinition:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RowNo() as AutoKey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; string%Table as ID&lt;/P&gt;&lt;P&gt;WHERE name = 'ID';&lt;/P&gt;&lt;P&gt;LOAD string%Table, name&lt;/P&gt;&lt;P&gt;FROM C:\Test.xml (XmlSimple, Table is [list/ProfileDefinition/string]);&lt;/P&gt;&lt;P&gt;Join&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RowNo() as AutoKey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; string%Table as Name&lt;/P&gt;&lt;P&gt;WHERE name = 'name';&lt;/P&gt;&lt;P&gt;LOAD string%Table, name&lt;/P&gt;&lt;P&gt;FROM C:\Test.xml (XmlSimple, Table is [list/ProfileDefinition/string]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop field AutoKey;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Apr 2012 15:11:41 GMT</pubDate>
    <dc:creator>Glenn_Renwick</dc:creator>
    <dc:date>2012-04-20T15:11:41Z</dc:date>
    <item>
      <title>Loading in Attribute Centric XML in QlikView Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-in-Attribute-Centric-XML-in-QlikView-Load-Script/m-p/358988#M704827</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;Has anyone got a nice way of working with XML that contain attributes? The QV load wizard does not seem to work well with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a sample of XML.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;list&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ProfileDefinition&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;string name="ID"&amp;gt;1&amp;lt;/string&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;string name="name"&amp;gt;My QlikView Application for XML&amp;lt;/string&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ProfileDefinition&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/list&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After loading, I would like to see&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table Name: ProfileDefinition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="70" style="border: 1px solid #000000; width: 281px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;My QlikView Application for XML&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2012 08:22:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-in-Attribute-Centric-XML-in-QlikView-Load-Script/m-p/358988#M704827</guid>
      <dc:creator>Glenn_Renwick</dc:creator>
      <dc:date>2012-04-19T08:22:02Z</dc:date>
    </item>
    <item>
      <title>Loading in Attribute Centric XML in QlikView Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-in-Attribute-Centric-XML-in-QlikView-Load-Script/m-p/358989#M704828</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;I got a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically loading 1 attribute value at a time using Where and then joining the attributes based on a RowNo() key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ProfileDefinition:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RowNo() as AutoKey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; string%Table as ID&lt;/P&gt;&lt;P&gt;WHERE name = 'ID';&lt;/P&gt;&lt;P&gt;LOAD string%Table, name&lt;/P&gt;&lt;P&gt;FROM C:\Test.xml (XmlSimple, Table is [list/ProfileDefinition/string]);&lt;/P&gt;&lt;P&gt;Join&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RowNo() as AutoKey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; string%Table as Name&lt;/P&gt;&lt;P&gt;WHERE name = 'name';&lt;/P&gt;&lt;P&gt;LOAD string%Table, name&lt;/P&gt;&lt;P&gt;FROM C:\Test.xml (XmlSimple, Table is [list/ProfileDefinition/string]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop field AutoKey;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 15:11:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-in-Attribute-Centric-XML-in-QlikView-Load-Script/m-p/358989#M704828</guid>
      <dc:creator>Glenn_Renwick</dc:creator>
      <dc:date>2012-04-20T15:11:41Z</dc:date>
    </item>
  </channel>
</rss>

