<?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 with &amp;quot;column headers&amp;quot; as Metadata in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/XML-with-quot-column-headers-quot-as-Metadata/m-p/391973#M146187</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's been a long time since I've had to do XML parsing. I have XML data from a Cognos report that has a metadata section with items containing the equivalent of table header names. I feel close to solving this, but am probably missing something simple and am getting sleep deprived. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; My current attempts are around numbering the header metadata with RowNo() and then trying to match the Items back since all metadata header items are represented in my rows of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on how to read this data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Nov 2012 16:42:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-29T16:42:47Z</dc:date>
    <item>
      <title>XML with "column headers" as Metadata</title>
      <link>https://community.qlik.com/t5/QlikView/XML-with-quot-column-headers-quot-as-Metadata/m-p/391973#M146187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's been a long time since I've had to do XML parsing. I have XML data from a Cognos report that has a metadata section with items containing the equivalent of table header names. I feel close to solving this, but am probably missing something simple and am getting sleep deprived. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; My current attempts are around numbering the header metadata with RowNo() and then trying to match the Items back since all metadata header items are represented in my rows of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on how to read this data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 16:42:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/XML-with-quot-column-headers-quot-as-Metadata/m-p/391973#M146187</guid>
      <dc:creator />
      <dc:date>2012-11-29T16:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: XML with "column headers" as Metadata</title>
      <link>https://community.qlik.com/t5/QlikView/XML-with-quot-column-headers-quot-as-Metadata/m-p/391974#M146188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;item:&lt;/P&gt;&lt;P&gt;LOAD name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; type,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; length,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; precision,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RowNo() as ValueRowNo&lt;/P&gt;&lt;P&gt;FROM [Project Status Report Export.xml] (XmlSimple, Table is [dataset/metadata/item]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMax = Peek('ValueRowNo',-1,item);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'dataset/data/row/value':&lt;/P&gt;&lt;P&gt;LOAD value%Table,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(rowno()&amp;gt;1 and peek('ValueRowNo')&amp;lt; $(vMax) ,peek('ValueRowNo')+1,1) as ValueRowNo&lt;/P&gt;&lt;P&gt;FROM [Project Status Report Export.xml] (XmlSimple, Table is [dataset/data/row/value]);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 19:21:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/XML-with-quot-column-headers-quot-as-Metadata/m-p/391974#M146188</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-11-29T19:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: XML with "column headers" as Metadata</title>
      <link>https://community.qlik.com/t5/QlikView/XML-with-quot-column-headers-quot-as-Metadata/m-p/391975#M146189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's pretty close but I need to keep the &amp;lt;row&amp;gt;&amp;lt;/row&amp;gt; groupings together. Is there some way when reading the row/values to increment a counter for each row?&amp;nbsp; That should let me group on that row counter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 20:43:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/XML-with-quot-column-headers-quot-as-Metadata/m-p/391975#M146189</guid>
      <dc:creator />
      <dc:date>2012-11-29T20:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: XML with "column headers" as Metadata</title>
      <link>https://community.qlik.com/t5/QlikView/XML-with-quot-column-headers-quot-as-Metadata/m-p/391976#M146190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;item:&lt;/P&gt;&lt;P&gt;LOAD name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; type,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; length,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; precision,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RowNo() as ValueRowNo&lt;/P&gt;&lt;P&gt;FROM [Project Status Report Export.xml] (XmlSimple, Table is [dataset/metadata/item]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMax = Peek('ValueRowNo',-1,item);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'dataset/data/row/value':&lt;/P&gt;&lt;P&gt;LOAD value%Table,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(rowno()&amp;gt;1 and peek('ValueRowNo')&amp;lt; $(vMax) ,peek('ValueRowNo')+1,1) as ValueRowNo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080;"&gt;&lt;STRONG&gt;ceil(RowNo()/$(vMax)) as Row&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; FROM [Project Status Report Export.xml] (XmlSimple, Table is [dataset/data/row/value]);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Dec 2012 18:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/XML-with-quot-column-headers-quot-as-Metadata/m-p/391976#M146190</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-12-01T18:55:34Z</dc:date>
    </item>
  </channel>
</rss>

