<?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: XML key/value pairs (Utility - XML) in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/XML-key-value-pairs-Utility-XML/m-p/88166#M38762</link>
    <description>Hello &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;I tried to implement your solution for the below XML format. But, I am not able to get the value which is corresponding to "id" and "cycle-id". Could you please help me with the same ?&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE class="lang-xml s-code-block"&gt;&lt;CODE class="hljs language-xml"&gt;&lt;SPAN class="hljs-tag"&gt;&amp;lt;Field Name ="id" &amp;gt;&lt;/SPAN&gt;&lt;SPAN class="hljs-tag"&gt;&amp;lt;Value&amp;gt;12345&lt;/SPAN&gt;&lt;SPAN class="hljs-tag"&gt;&amp;lt;V&lt;SPAN class="hljs-name"&gt;alue&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="hljs-tag"&gt;&amp;lt;/Field&amp;gt;&lt;BR /&gt;&amp;lt;Field Name ="cycle-id" &amp;gt;&amp;lt;Value&amp;gt;67891&amp;lt;V&lt;SPAN class="hljs-name"&gt;alue&lt;/SPAN&gt;&amp;gt;&amp;lt;/Field&amp;gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&amp;nbsp;Thanks in Advance!​&lt;BR /&gt;&lt;BR /&gt;Kind Regards,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Kiran Singh&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Tue, 18 Oct 2022 14:25:00 GMT</pubDate>
    <dc:creator>KiranSingh1</dc:creator>
    <dc:date>2022-10-18T14:25:00Z</dc:date>
    <item>
      <title>XML key/value pairs (Utility - XML)</title>
      <link>https://community.blueprism.com/t5/Product-Forum/XML-key-value-pairs-Utility-XML/m-p/88160#M38756</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I wanted to parse some data from XML file and thought to use the Utility - XML provided by Blue Prism.&lt;BR /&gt;Soon I came to the point where it seems the VBO cannot help me anymore.&lt;BR /&gt;&lt;BR /&gt;I used following file:&amp;nbsp;
&lt;DIV style="padding-left: 40px;"&gt;C:\Program Files\Blue Prism Limited\Blue Prism Automate\Automate.exe.config&lt;/DIV&gt;
&lt;BR /&gt;And want to read the value of this line:
&lt;DIV style="padding-left: 40px;"&gt;&amp;lt;add key="BrowserAutomation.DefaultCommunicationTimeout" value="3000" /&amp;gt;&lt;/DIV&gt;
&lt;BR /&gt;The action Get Attribute returns only:&amp;nbsp;
&lt;DIV style="padding-left: 40px;"&gt;value=&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;It seems Utility - XML expects a format like:&amp;nbsp;&lt;/DIV&gt;
&lt;DIV style="padding-left: 40px;"&gt;&amp;lt;key name="k1"&amp;gt;val1&amp;lt;/key&amp;gt;&lt;/DIV&gt;
but got this:
&lt;DIV style="padding-left: 40px;"&gt;&amp;lt;item key="k1" value="val1" /&amp;gt;&lt;/DIV&gt;
&lt;BR /&gt;There seem to be three ways on presenting key/value pairs in XML:&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/1543388/xml-dom-storing-key-value-pairs" target="test_blank"&gt;https://stackoverflow.com/questions/1543388/xml-dom-storing-key-value-pairs&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A data-url="https://stackoverflow.com/questions/1543388/xml-dom-storing-key-value-pairs" class="embedly-content" href="https://stackoverflow.com/questions/1543388/xml-dom-storing-key-value-pairs" target="_blank" rel="noopener"&gt;&lt;/A&gt;I looked at DX if there is a newer version available but the VBO handles key/values the same way.&lt;BR /&gt;(btw the version number in DX is 1.0.0 but the file is named BPA+Object+-+Utility+-+XML_v2.0.xml and was updated two days ago.&lt;BR /&gt;Also the link to the readme.md file does not work anymore)&lt;BR /&gt;&lt;BR /&gt;Is this a community topic or should I create support ticket?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Walter Koller&lt;BR /&gt;Solution Manager&lt;BR /&gt;Erste Group IT International GmbH&lt;BR /&gt;Europe/Vienna&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Apr 2022 17:24:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/XML-key-value-pairs-Utility-XML/m-p/88160#M38756</guid>
      <dc:creator>Walter.Koller</dc:creator>
      <dc:date>2022-04-27T17:24:00Z</dc:date>
    </item>
    <item>
      <title>RE: XML key/value pairs (Utility - XML)</title>
      <link>https://community.blueprism.com/t5/Product-Forum/XML-key-value-pairs-Utility-XML/m-p/88161#M38757</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="acb049eb-b80c-4d08-8fbf-ab00cf602ee3" data-tag-text="@Walter Koller" href="https://community.blueprism.com/network/profile?UserKey=acb049eb-b80c-4d08-8fbf-ab00cf602ee3" data-itemmentionkey="a076fb68-5f3f-4305-8922-4b067980f381"&gt;@Walter Koller&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;Go ahead and open a ticket on this. That way we'll have some tracking on it.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Apr 2022 19:40:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/XML-key-value-pairs-Utility-XML/m-p/88161#M38757</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-04-27T19:40:00Z</dc:date>
    </item>
    <item>
      <title>RE: XML key/value pairs (Utility - XML)</title>
      <link>https://community.blueprism.com/t5/Product-Forum/XML-key-value-pairs-Utility-XML/m-p/88162#M38758</link>
      <description>&lt;A class="user-content-mention" data-sign="@" data-contactkey="acb049eb-b80c-4d08-8fbf-ab00cf602ee3" data-tag-text="@Walter Koller" href="https://community.blueprism.com/network/profile?UserKey=acb049eb-b80c-4d08-8fbf-ab00cf602ee3" data-itemmentionkey="82b72ac0-8284-4cba-8f0a-c5def91ab705"&gt;@Walter Koller&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;I just took a look at this and it seems to work fine. Here's how I get the key name and key value using the &lt;STRONG&gt;Get Attributes&lt;/STRONG&gt; action:&lt;BR /&gt;
&lt;OL&gt;
&lt;LI&gt;I started by reading the contents of the config file.&lt;/LI&gt;
&lt;LI&gt;Then a pulled a collection of the &lt;STRONG&gt;&amp;lt;add /&amp;gt;&lt;/STRONG&gt; elements.&lt;/LI&gt;
&lt;LI&gt;Next, I iterate over the rows of the collection pulling the values for the two attributes named &lt;STRONG&gt;key&lt;/STRONG&gt; and &lt;STRONG&gt;value&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;/OL&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="11986.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12156i83B59459B80C3FE4/image-size/large?v=v2&amp;amp;px=999" role="button" title="11986.png" alt="11986.png" /&gt;&lt;/span&gt;&lt;BR /&gt;BTW - We've fixed the documentation and version issues too.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Apr 2022 20:31:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/XML-key-value-pairs-Utility-XML/m-p/88162#M38758</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-04-27T20:31:00Z</dc:date>
    </item>
    <item>
      <title>RE: XML key/value pairs (Utility - XML)</title>
      <link>https://community.blueprism.com/t5/Product-Forum/XML-key-value-pairs-Utility-XML/m-p/88163#M38759</link>
      <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt;&lt;BR /&gt;Thanks a lot for your quick and working ​solution.&lt;BR /&gt;There would be also a decision necessary to manually verify if the KEY is the one I am looking for.&lt;BR /&gt;This should work, although it is a little more complex than using the &lt;EM&gt;Get Attribute&lt;/EM&gt; action once and getting exactly the value what I am looking for.&lt;BR /&gt;
&lt;P&gt;
&lt;/P&gt;&lt;DIV&gt;I did another test with XML document containing all three format. This one should be supported by the &lt;EM&gt;Get Attribute&lt;/EM&gt; action:&lt;/DIV&gt;
&lt;DIV style="padding-left: 40px;"&gt;&amp;lt;key name="v3k1"&amp;gt;v3val1&amp;lt;/key&amp;gt;&lt;/DIV&gt;
However, when executing this stage with Attribute Name = "v3k1" the result is:&amp;nbsp;
&lt;DIV style="padding-left: 40px;"&gt;v3val1&amp;lt;/key&amp;gt;&lt;/DIV&gt;
I did another test by changing the line in the XML document to:
&lt;DIV style="padding-left: 40px;"&gt;&amp;lt;key name="v3k1"&amp;gt;"v3val1"&amp;lt;/key&amp;gt;&lt;/DIV&gt;
But this didn't return any result at all.&lt;BR /&gt;&lt;BR /&gt;When looking at the Utility - XML code for Get Attribute:
&lt;PRE&gt;//Attribute holds the value provided to the action: v3k1&lt;BR /&gt;i += Attribute.length + 2                         //i is set to the character after: v3k1"&amp;gt;&lt;BR /&gt;value = XML.substring(i)                          //value is set to: v3val1&amp;lt;/key&amp;gt;&lt;BR /&gt;value = value.substring(0, value.indexof(""""))   //right side of value is truncated to the first "&lt;BR /&gt;//if value = "v3val1"&amp;lt;/key&amp;gt; then the result is " (I guess single " will be ignored in BP the result is therefore empty)&lt;BR /&gt;//if value = v3val1&amp;lt;/key&amp;gt; then the result is v3val1&amp;lt;/key&amp;gt; (ie until EOL) since no " is found&lt;/PRE&gt;
&lt;BR /&gt;or did I miss something?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Walter Koller&lt;BR /&gt;Solution Manager&lt;BR /&gt;Erste Group IT International GmbH&lt;BR /&gt;Europe/Vienna&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Apr 2022 08:22:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/XML-key-value-pairs-Utility-XML/m-p/88163#M38759</guid>
      <dc:creator>Walter.Koller</dc:creator>
      <dc:date>2022-04-28T08:22:00Z</dc:date>
    </item>
    <item>
      <title>RE: XML key/value pairs (Utility - XML)</title>
      <link>https://community.blueprism.com/t5/Product-Forum/XML-key-value-pairs-Utility-XML/m-p/88164#M38760</link>
      <description>&lt;A class="user-content-mention" data-sign="@" data-contactkey="acb049eb-b80c-4d08-8fbf-ab00cf602ee3" data-tag-text="@Walter Koller" href="https://community.blueprism.com/network/profile?UserKey=acb049eb-b80c-4d08-8fbf-ab00cf602ee3" data-itemmentionkey="19e3f0f8-9899-43d7-9953-2a4a38f32540"&gt;@Walter Koller&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;I think there's a little misunderstanding here. In terms of the XML specification, the two items &lt;STRONG&gt;key&lt;/STRONG&gt; and &lt;STRONG&gt;value&lt;/STRONG&gt; are nothing more than attributes on the &lt;STRONG&gt;add&lt;/STRONG&gt; element. They could just as easily be named &lt;STRONG&gt;john&lt;/STRONG&gt; and &lt;STRONG&gt;doe&lt;/STRONG&gt;.​ If you know the name of the attribute and you use the &lt;EM&gt;&lt;STRONG&gt;Get Attribute&lt;/STRONG&gt;&lt;/EM&gt; action you will get the exact value of that attribute.&lt;BR /&gt;&lt;BR /&gt;In your example, &lt;SPAN&gt;&lt;STRONG&gt;&amp;lt;key name="v3k1"&amp;gt;v3val1&amp;lt;/key&amp;gt;&lt;/STRONG&gt;, the parts of the XML are as follows:&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;lt;key ...&amp;gt;...&amp;lt;/key&amp;gt;&lt;/EM&gt;&lt;/STRONG&gt; is an XML element&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;&lt;STRONG&gt;name="v3val1"&lt;/STRONG&gt; &lt;/EM&gt;is an attribute of the element &lt;STRONG&gt;&lt;EM&gt;&amp;lt;key&amp;gt;...&amp;lt;/key&amp;gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;EM&gt;v3val &lt;/EM&gt;&lt;/STRONG&gt;is the value of the element &lt;STRONG&gt;&lt;EM&gt;&amp;lt;key&amp;gt;...&amp;lt;/key&amp;gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;EM&gt;v3k1 &lt;/EM&gt;&lt;/STRONG&gt;is the value of the attribute &lt;STRONG&gt;&lt;EM&gt;name&lt;/EM&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;
Here's an example, using your test XML, of one way of retrieving the specific element &lt;STRONG&gt;variant3&lt;/STRONG&gt; and then parsing its child elements and their associated attributes:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11988.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12157i7AABA35024F73FD8/image-size/large?v=v2&amp;amp;px=999" role="button" title="11988.png" alt="11988.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11989.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12160iA5CE2E93895E1C21/image-size/large?v=v2&amp;amp;px=999" role="button" title="11989.png" alt="11989.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11990.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12158i8E243B3A20420D76/image-size/large?v=v2&amp;amp;px=999" role="button" title="11990.png" alt="11990.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11991.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12161iCBD0FC698663C24D/image-size/large?v=v2&amp;amp;px=999" role="button" title="11991.png" alt="11991.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11992.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12159i614D68B394B229FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="11992.png" alt="11992.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11993.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12163i0A4FBD1287433150/image-size/large?v=v2&amp;amp;px=999" role="button" title="11993.png" alt="11993.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11994.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12164iF541E30445A1B6A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="11994.png" alt="11994.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Apr 2022 10:55:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/XML-key-value-pairs-Utility-XML/m-p/88164#M38760</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-04-28T10:55:00Z</dc:date>
    </item>
    <item>
      <title>RE: XML key/value pairs (Utility - XML)</title>
      <link>https://community.blueprism.com/t5/Product-Forum/XML-key-value-pairs-Utility-XML/m-p/88165#M38761</link>
      <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt;&lt;BR /&gt;Hi Eric, thanks a lot for taking your time for explaining what the knot in my thinking is.&lt;BR /&gt;It seems I found a very bad and confusing example of XML for testing the VBO.&lt;BR /&gt;For me KEY and its VALUE is basically one entity, thus I was assuming the meaning of the structure instead of reading the actual syntax. Thanks for pointing this out &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Walter Koller&lt;BR /&gt;Solution Manager&lt;BR /&gt;Erste Group IT International GmbH&lt;BR /&gt;Europe/Vienna&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Apr 2022 07:17:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/XML-key-value-pairs-Utility-XML/m-p/88165#M38761</guid>
      <dc:creator>Walter.Koller</dc:creator>
      <dc:date>2022-04-29T07:17:00Z</dc:date>
    </item>
    <item>
      <title>RE: XML key/value pairs (Utility - XML)</title>
      <link>https://community.blueprism.com/t5/Product-Forum/XML-key-value-pairs-Utility-XML/m-p/88166#M38762</link>
      <description>Hello &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;I tried to implement your solution for the below XML format. But, I am not able to get the value which is corresponding to "id" and "cycle-id". Could you please help me with the same ?&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE class="lang-xml s-code-block"&gt;&lt;CODE class="hljs language-xml"&gt;&lt;SPAN class="hljs-tag"&gt;&amp;lt;Field Name ="id" &amp;gt;&lt;/SPAN&gt;&lt;SPAN class="hljs-tag"&gt;&amp;lt;Value&amp;gt;12345&lt;/SPAN&gt;&lt;SPAN class="hljs-tag"&gt;&amp;lt;V&lt;SPAN class="hljs-name"&gt;alue&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="hljs-tag"&gt;&amp;lt;/Field&amp;gt;&lt;BR /&gt;&amp;lt;Field Name ="cycle-id" &amp;gt;&amp;lt;Value&amp;gt;67891&amp;lt;V&lt;SPAN class="hljs-name"&gt;alue&lt;/SPAN&gt;&amp;gt;&amp;lt;/Field&amp;gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&amp;nbsp;Thanks in Advance!​&lt;BR /&gt;&lt;BR /&gt;Kind Regards,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Kiran Singh&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Oct 2022 14:25:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/XML-key-value-pairs-Utility-XML/m-p/88166#M38762</guid>
      <dc:creator>KiranSingh1</dc:creator>
      <dc:date>2022-10-18T14:25:00Z</dc:date>
    </item>
    <item>
      <title>RE: XML key/value pairs (Utility - XML)</title>
      <link>https://community.blueprism.com/t5/Product-Forum/XML-key-value-pairs-Utility-XML/m-p/88167#M38763</link>
      <description>Hello &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/29921"&gt;@KiranSingh&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;First issue is that your XML is not valid. The &lt;STRONG&gt;Value&lt;/STRONG&gt; elements are not properly terminated. They should be defined as &lt;STRONG&gt;&amp;lt;Value&amp;gt;...&amp;lt;/Value&amp;gt;&lt;/STRONG&gt;. Your missing the forward slash on the closing tag.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Oct 2022 15:13:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/XML-key-value-pairs-Utility-XML/m-p/88167#M38763</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-10-18T15:13:00Z</dc:date>
    </item>
    <item>
      <title>RE: XML key/value pairs (Utility - XML)</title>
      <link>https://community.blueprism.com/t5/Product-Forum/XML-key-value-pairs-Utility-XML/m-p/88168#M38764</link>
      <description>Hello &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Thanks for highlighting the syntax error.​&amp;nbsp; This was a typing error on my side in the chat. Could you please suggest a solution to fetch value against "id and "cycle -id"?&lt;BR /&gt;&lt;BR /&gt;XML after correction :&lt;BR /&gt;
&lt;PRE class="language-markup" tabindex="0"&gt;&lt;CODE&gt;&amp;lt;Field Name ="id" &amp;gt;&amp;lt;Value&amp;gt;12345&amp;lt;/Value&amp;gt;&amp;lt;/Field&amp;gt;&amp;lt;Field Name ="cycle-id" &amp;gt;&amp;lt;Value&amp;gt;67891&amp;lt;/Value&amp;gt;&amp;lt;/Field&amp;gt;​&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Kiran Singh&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Oct 2022 16:59:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/XML-key-value-pairs-Utility-XML/m-p/88168#M38764</guid>
      <dc:creator>KiranSingh1</dc:creator>
      <dc:date>2022-10-18T16:59:00Z</dc:date>
    </item>
    <item>
      <title>RE: XML key/value pairs (Utility - XML)</title>
      <link>https://community.blueprism.com/t5/Product-Forum/XML-key-value-pairs-Utility-XML/m-p/88169#M38765</link>
      <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/29921"&gt;@KiranSingh&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Is the XML that you're working with part of a larger document? The snippet that you've shown in your example probably isn't being processed because there's no root/container element. You just have two Field elements at the same level. If you wrap your example XML in a container element then you can call &lt;EM&gt;&lt;STRONG&gt;Get Elements&lt;/STRONG&gt;&lt;/EM&gt; and it will return a Collection with two records (each of the Field elements).&lt;BR /&gt;&lt;BR /&gt;Here's an example of what the XML should look like:&lt;BR /&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;&amp;lt;Fields&amp;gt;
  &amp;lt;Field Name ="id" &amp;gt;
    &amp;lt;Value&amp;gt;12345&amp;lt;/Value&amp;gt;
  &amp;lt;/Field&amp;gt;
  &amp;lt;Field Name ="cycle-id" &amp;gt;
    &amp;lt;Value&amp;gt;67891&amp;lt;/Value&amp;gt;
  &amp;lt;/Field&amp;gt;
&amp;lt;/Fields&amp;gt;​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;And here's what my Get Elements call looks like:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12008.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12177iE5FF5CDFC83C414F/image-size/large?v=v2&amp;amp;px=999" role="button" title="12008.png" alt="12008.png" /&gt;&lt;/span&gt;&lt;/P&gt;
And this is what the output Collection looks like after calling &lt;EM&gt;&lt;STRONG&gt;Get Elements&lt;/STRONG&gt;&lt;/EM&gt;:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12009.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12175iF40C4A0CBAF8A13E/image-size/large?v=v2&amp;amp;px=999" role="button" title="12009.png" alt="12009.png" /&gt;&lt;/span&gt;&lt;BR /&gt;After that, you can loop the Collection to pull out the value of the &lt;STRONG&gt;Name&lt;/STRONG&gt; attribute using the &lt;EM&gt;&lt;STRONG&gt;Get Attribute&lt;/STRONG&gt;&lt;/EM&gt; action:&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12010.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12179i250CE4A4816CA696/image-size/large?v=v2&amp;amp;px=999" role="button" title="12010.png" alt="12010.png" /&gt;&lt;/span&gt;&lt;BR /&gt;And then you can use XPath to pull out the &lt;STRONG&gt;Value&lt;/STRONG&gt; element contained within the &lt;STRONG&gt;Field&lt;/STRONG&gt; element:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12011.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12180i6A9EF1E9116693A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="12011.png" alt="12011.png" /&gt;&lt;/span&gt;&lt;BR /&gt;This is what the output Collection looks like for that:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12012.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12181iE183477C34F0F57B/image-size/large?v=v2&amp;amp;px=999" role="button" title="12012.png" alt="12012.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Finally, you have an internal loop (loop within the outer loop) to loop over the Value Collection. Put it all together and it looks something like this:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12013.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12194i81D966582690B4AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="12013.png" alt="12013.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Oct 2022 17:53:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/XML-key-value-pairs-Utility-XML/m-p/88169#M38765</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-10-18T17:53:00Z</dc:date>
    </item>
    <item>
      <title>RE: XML key/value pairs (Utility - XML)</title>
      <link>https://community.blueprism.com/t5/Product-Forum/XML-key-value-pairs-Utility-XML/m-p/88170#M38766</link>
      <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt; : Many thanks for the detailed information.​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Kiran Singh&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Oct 2022 07:59:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/XML-key-value-pairs-Utility-XML/m-p/88170#M38766</guid>
      <dc:creator>KiranSingh1</dc:creator>
      <dc:date>2022-10-19T07:59:00Z</dc:date>
    </item>
  </channel>
</rss>

