<?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: How can I parse XML string? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-I-parse-XML-string/m-p/420802#M156671</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you save the xml as a file and use the Table files feature to load it?&lt;/P&gt;&lt;P&gt;I tried it with the string you sent, but the File Wizard returned an error, implying that the xml was incomplete.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Mar 2013 12:03:20 GMT</pubDate>
    <dc:creator>m_woolf</dc:creator>
    <dc:date>2013-03-08T12:03:20Z</dc:date>
    <item>
      <title>How can I parse XML string?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-parse-XML-string/m-p/420798#M156667</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 'm using a web service to return some data which I store in a variable.&lt;/P&gt;&lt;P&gt;This all works fine and the string contains a perfectly formed XML string but I need to display this string in a more readable form - is there a way that I can do that in QlkikView?&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;Alexis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 20:55:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-parse-XML-string/m-p/420798#M156667</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2013-03-07T20:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can I parse XML string?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-parse-XML-string/m-p/420799#M156668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post an example of what the XML string looks like and how you want it to look?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 21:44:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-parse-XML-string/m-p/420799#M156668</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2013-03-07T21:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I parse XML string?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-parse-XML-string/m-p/420800#M156669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;The string is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13626940934404285" jivemacro_uid="_13626940934404285"&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&amp;lt;soap:Envelope xmlns:soap="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.xmlsoap.org/soap/envelope/"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN&gt;xmlns:xsi="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;&lt;SPAN&gt;" xmlns:xsd="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;soap:Body&amp;gt;&amp;lt;GetQuoteResponse &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN&gt;xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.webserviceX.NET/"&gt;http://www.webserviceX.NET/&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;GetQuoteResult&amp;gt;&amp;lt;StockQuotes&amp;gt;&amp;lt;Stock&amp;gt;&amp;lt;Symbol&amp;gt;STX&amp;lt;/Symbol&amp;gt;&amp;lt;Last&amp;gt;32.145&amp;lt;/Last&amp;gt;&amp;lt;Date&amp;gt;3/7/2013&amp;lt;/Date&amp;gt;&amp;lt;Time&amp;gt;3&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;:11pm&amp;lt;/Time&amp;gt;&amp;lt;Change&amp;gt;-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;0.875&amp;lt;/Change&amp;gt;&amp;lt;Open&amp;gt;33.18&amp;lt;/Open&amp;gt;&amp;lt;High&amp;gt;33.20&amp;lt;/High&amp;gt;&amp;lt;Low&amp;gt;31.94&amp;lt;/Low&amp;gt;&amp;lt;Volume&amp;gt;4284727&amp;lt;/Volume&amp;gt;&amp;lt;MktCap&amp;gt;11.536B&amp;lt;/MktCap&amp;gt;&amp;lt;PreviousClose&amp;gt;33.02&amp;lt;/Pre&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;viousClose&amp;gt;&amp;lt;PercentageChange&amp;gt;-2.65%&amp;lt;/PercentageChange&amp;gt;&amp;lt;AnnRange&amp;gt;21.62 - 37.94&amp;lt;/AnnRange&amp;gt;&amp;lt;Earns&amp;gt;7.704&amp;lt;/Earns&amp;gt;&amp;lt;P-E&amp;gt;4.29&amp;lt;/P-E&amp;gt;&amp;lt;Name&amp;gt;Seagate &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Technolog&amp;lt;/Name&amp;gt;&amp;lt;/Stock&amp;gt;&amp;lt;/StockQuotes&amp;gt;&amp;lt;/GetQuoteResult&amp;gt;&amp;lt;/GetQuoteResponse&amp;gt;&amp;lt;/soap:Body&amp;gt;&amp;lt;/soap:Envelope&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like it either as something&amp;nbsp; like:&lt;/P&gt;&lt;P&gt;Symbol = STX&lt;/P&gt;&lt;P&gt;Last = 32.145 &lt;/P&gt;&lt;P&gt;etc or&lt;/P&gt;&lt;P&gt;(as attached - could not add the image - in jpg or png - in this thread by the way - "Insert Image" just gave me a black screen with no prompts or drop-in facility..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 22:11:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-parse-XML-string/m-p/420800#M156669</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2013-03-07T22:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I parse XML string?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-parse-XML-string/m-p/420801#M156670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the attached qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 11:49:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-parse-XML-string/m-p/420801#M156670</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2013-03-08T11:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: How can I parse XML string?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-parse-XML-string/m-p/420802#M156671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you save the xml as a file and use the Table files feature to load it?&lt;/P&gt;&lt;P&gt;I tried it with the string you sent, but the File Wizard returned an error, implying that the xml was incomplete.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 12:03:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-parse-XML-string/m-p/420802#M156671</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2013-03-08T12:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I parse XML string?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-parse-XML-string/m-p/420803#M156672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mwoolf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried to use subfield but could not achieve my objective, but using yoiur suggested "purgechar) solved the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know it's not the most efficient way, as I should store the purged version in another variable, but for now here is how I pull out the symbol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13627527068315472" jivemacro_uid="_13627527068315472"&gt;&lt;P&gt;= 'Symbol = ' &amp;amp; subfield( purgechar(vXMLReceived,'/'), '&amp;lt;Symbol&amp;gt;',2)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank for your suggestions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 14:27:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-parse-XML-string/m-p/420803#M156672</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2013-03-08T14:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can I parse XML string?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-parse-XML-string/m-p/420804#M156673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can also use TextBetween-Function in Script: &lt;/P&gt;&lt;P&gt;TextBetween&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;XML_Data&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, '&amp;lt;XMLTag&amp;gt;','&amp;lt;/XMLTag&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; ColumnName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;or as Formula in TextBox/ ListBox:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TextBetween&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;XML&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;_Data&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, '&amp;lt;XMLTag&amp;gt;','&amp;lt;/XMLTag&amp;gt;') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2013 15:01:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-parse-XML-string/m-p/420804#M156673</guid>
      <dc:creator>onkellepie</dc:creator>
      <dc:date>2013-08-01T15:01:38Z</dc:date>
    </item>
  </channel>
</rss>

