<?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>question Re: How to read attributes and values from XML payload? in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732478#M389404</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;you can convert that XML to JSON and then parse the JSON&lt;/P&gt;
&lt;P&gt;For converting xml to json refer this link&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.servicenow.com/community?id=community_question&amp;amp;sys_id=4be9113bdb82eb009540e15b8a9619fe" target="_blank"&gt;Converting XML to JSON&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Script I tried&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;var jsonString = '{"set1":{"attr1":"123"},"set2":{"attr2":"xyz"},"attr3":"value1","attr4":"value2"}';

var parser = JSON.parse(jsonString);

var attr1Value = parser.set1.attr1;

var attr2Value = parser.set2.attr2;

var attr3Value = parser.attr3;

var attr4Value = parser.attr4;

gs.info(attr1Value);
gs.info(attr2Value);
gs.info(attr3Value);
gs.info(attr4Value);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/202184iDAD1A28E3C69D9C4/image-size/large?v=v2&amp;amp;px=999" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
    <pubDate>Mon, 07 Dec 2020 06:48:06 GMT</pubDate>
    <dc:creator>Ankur Bawiskar</dc:creator>
    <dc:date>2020-12-07T06:48:06Z</dc:date>
    <item>
      <title>How to read attributes and values from XML payload?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732471#M389397</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a requirement to read from xml payload and write it in a staging table along with few other columns read from another table. e.g 3 columns from xml payload and 2 columns from another table which are in string format.&lt;/P&gt;
&lt;P&gt;How do I read the attributes and values dynamically ?&lt;/P&gt;
&lt;P&gt;the payload looks like&amp;nbsp; : &amp;lt;?xml version="1.0" encoding="UTF-8" standalone = "yes"?&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;set&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;set1&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;attr1&amp;gt; 123 &amp;lt;/attr1&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/set1&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;set2&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;attr2&amp;gt;xyz&amp;lt;/attr2&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/set2&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;attr3&amp;gt; value1 &amp;lt;/attr3&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;attr4&amp;gt;value2&amp;lt;/attr4&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/set&amp;gt;&lt;/P&gt;
&lt;P&gt;It looks like in tree structure. How to I get the attribute names(attr1,attr2,attr3) and values (123,xyz,value1,value2) ?&lt;/P&gt;
&lt;P&gt;The script is one but the payloads are different for different use cases.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Chinmayee Mishra&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 06:03:36 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732471#M389397</guid>
      <dc:creator>Chinmayee1</dc:creator>
      <dc:date>2020-12-07T06:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to read attributes and values from XML payload?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732472#M389398</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Check below link that may help you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.servicenow.com/bundle/orlando-application-development/page/script/business-rules/concept/business-rule-examples.html#conceptjqqtjxz4" target="_blank"&gt;https://docs.servicenow.com/bundle/orlando-application-development/page/script/business-rules/concept/business-rule-examples.html#conceptjqqtjxz4&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 06:16:38 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732472#M389398</guid>
      <dc:creator>Onkar Pandav</dc:creator>
      <dc:date>2020-12-07T06:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to read attributes and values from XML payload?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732473#M389399</link>
      <description>&lt;P&gt;This doesn't help. I need to fetch the attribute names dynamically.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 06:22:19 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732473#M389399</guid>
      <dc:creator>Chinmayee1</dc:creator>
      <dc:date>2020-12-07T06:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to read attributes and values from XML payload?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732474#M389400</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;you will have to parse the XML&lt;/P&gt;
&lt;P&gt;Your above XML structure is not valid as it doesn't have repeated tags&lt;/P&gt;
&lt;P&gt;Ensure the xml structure is valid with valid tags etc and it would be easier to parse&lt;/P&gt;
&lt;P&gt;Refer below link where I have shared sample script for parsing repeated tags&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.servicenow.com/community?id=community_question&amp;amp;sys_id=504d8ba9db9cdbc01dcaf3231f96192b" target="_blank"&gt;Using XPATH to get multiple values from the same node name&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 06:24:04 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732474#M389400</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2020-12-07T06:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to read attributes and values from XML payload?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732475#M389401</link>
      <description>&lt;P&gt;Hi Ankur ,&lt;/P&gt;
&lt;P&gt;The payload I m trying to read is not like the link you've shared.&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Chinmayee&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 06:32:11 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732475#M389401</guid>
      <dc:creator>Chinmayee1</dc:creator>
      <dc:date>2020-12-07T06:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to read attributes and values from XML payload?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732476#M389402</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;payload might not be the same.&lt;/P&gt;
&lt;P&gt;but the approach of parsing the XML for repeated tags will be same&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 06:40:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732476#M389402</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2020-12-07T06:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to read attributes and values from XML payload?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732477#M389403</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;If I paste the above xml and convert it to JSON online , It looks like below&lt;/P&gt;
&lt;PRE id="jsonOutput" class="nohighlight json"&gt;&lt;SPAN class="json-open-bracket"&gt;{&lt;/SPAN&gt;&lt;IMG class="json-minus" src="https://www.freeformatter.com/3.7.0.0/img/minus.gif" /&gt;&lt;SPAN class="json-collapse-1"&gt;
   &lt;SPAN class="json-property"&gt;"set1"&lt;/SPAN&gt;&lt;SPAN class="json-semi-colon"&gt;: &lt;/SPAN&gt;&lt;SPAN class="json-open-bracket"&gt;{&lt;/SPAN&gt;&lt;IMG class="json-minus" src="https://www.freeformatter.com/3.7.0.0/img/minus.gif" /&gt;&lt;SPAN class="json-collapse-2"&gt;
      &lt;SPAN class="json-property"&gt;"attr1"&lt;/SPAN&gt;&lt;SPAN class="json-semi-colon"&gt;: &lt;/SPAN&gt;&lt;SPAN class="json-value"&gt;"123"&lt;/SPAN&gt;
   &lt;/SPAN&gt;&lt;SPAN class="json-close-bracket"&gt;}&lt;/SPAN&gt;&lt;SPAN class="json-comma"&gt;,&lt;/SPAN&gt;
   &lt;SPAN class="json-property"&gt;"set2"&lt;/SPAN&gt;&lt;SPAN class="json-semi-colon"&gt;: &lt;/SPAN&gt;&lt;SPAN class="json-open-bracket"&gt;{&lt;/SPAN&gt;&lt;IMG class="json-minus" src="https://www.freeformatter.com/3.7.0.0/img/minus.gif" /&gt;&lt;SPAN class="json-collapse-3"&gt;
      &lt;SPAN class="json-property"&gt;"attr2"&lt;/SPAN&gt;&lt;SPAN class="json-semi-colon"&gt;: &lt;/SPAN&gt;&lt;SPAN class="json-value"&gt;"xyz"&lt;/SPAN&gt;
   &lt;/SPAN&gt;&lt;SPAN class="json-close-bracket"&gt;}&lt;/SPAN&gt;&lt;SPAN class="json-comma"&gt;,&lt;/SPAN&gt;
   &lt;SPAN class="json-property"&gt;"attr3"&lt;/SPAN&gt;&lt;SPAN class="json-semi-colon"&gt;: &lt;/SPAN&gt;&lt;SPAN class="json-value"&gt;"value1"&lt;/SPAN&gt;&lt;SPAN class="json-comma"&gt;,&lt;/SPAN&gt;
   &lt;SPAN class="json-property"&gt;"attr4"&lt;/SPAN&gt;&lt;SPAN class="json-semi-colon"&gt;: &lt;/SPAN&gt;&lt;SPAN class="json-value"&gt;"value2"&lt;/SPAN&gt;
&lt;/SPAN&gt;&lt;SPAN class="json-close-bracket"&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;This is what I need.&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Dec 2020 06:42:36 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732477#M389403</guid>
      <dc:creator>Chinmayee1</dc:creator>
      <dc:date>2020-12-07T06:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to read attributes and values from XML payload?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732478#M389404</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;you can convert that XML to JSON and then parse the JSON&lt;/P&gt;
&lt;P&gt;For converting xml to json refer this link&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.servicenow.com/community?id=community_question&amp;amp;sys_id=4be9113bdb82eb009540e15b8a9619fe" target="_blank"&gt;Converting XML to JSON&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Script I tried&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;var jsonString = '{"set1":{"attr1":"123"},"set2":{"attr2":"xyz"},"attr3":"value1","attr4":"value2"}';

var parser = JSON.parse(jsonString);

var attr1Value = parser.set1.attr1;

var attr2Value = parser.set2.attr2;

var attr3Value = parser.attr3;

var attr4Value = parser.attr4;

gs.info(attr1Value);
gs.info(attr2Value);
gs.info(attr3Value);
gs.info(attr4Value);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/202184iDAD1A28E3C69D9C4/image-size/large?v=v2&amp;amp;px=999" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 06:48:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732478#M389404</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2020-12-07T06:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to read attributes and values from XML payload?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732479#M389405</link>
      <description>&lt;P&gt;&lt;SN-MENTION class="sn-mention" table="live_profile" sysid="a6868713db8fdfc4e0e80b55ca9619cd"&gt;@Chinmayee&lt;/SN-MENTION&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for marking my response as helpful.&lt;/P&gt;
&lt;P&gt;Let me know if I have answered your question.&lt;BR /&gt;&lt;BR /&gt;If so, please mark appropriate response as correct &amp;amp; helpful so that this thread can be closed and others can be benefited by this.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 07:28:45 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732479#M389405</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2020-12-07T07:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to read attributes and values from XML payload?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732480#M389406</link>
      <description>&lt;P&gt;Hi Ankur ,&lt;/P&gt;
&lt;P&gt;I am able to get the values but not attributes.&lt;/P&gt;
&lt;P&gt;I did the below&lt;/P&gt;
&lt;P&gt;var payLoad = "my xml payLoad";&lt;/P&gt;
&lt;P&gt;var helper = XMLHelper(payLoad);&lt;/P&gt;
&lt;P&gt;obj = helper.toObject();&lt;/P&gt;
&lt;P&gt;for(x in obj){&lt;/P&gt;
&lt;P&gt;gs.log("xml objects :"+obj[x]);&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;It gives me only values of every node but not the attribute names.&lt;/P&gt;
&lt;P&gt;Can you please advise ?&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Chinmayee Mishra&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 07:49:01 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732480#M389406</guid>
      <dc:creator>Chinmayee1</dc:creator>
      <dc:date>2020-12-07T07:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to read attributes and values from XML payload?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732481#M389407</link>
      <description>&lt;P&gt;Now I am getting the attributes and values for one object but not all.&lt;/P&gt;
&lt;P&gt;I tried to convert to JSON. Its not working.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 08:16:45 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732481#M389407</guid>
      <dc:creator>Chinmayee1</dc:creator>
      <dc:date>2020-12-07T08:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to read attributes and values from XML payload?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732482#M389408</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;are you not able to convert xml to json?&lt;/P&gt;
&lt;P&gt;please share the actual xml you are having&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 08:36:55 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732482#M389408</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2020-12-07T08:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to read attributes and values from XML payload?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732483#M389409</link>
      <description>&lt;P&gt;xmlToJSON(xml string) doesn't work&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 08:41:22 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732483#M389409</guid>
      <dc:creator>Chinmayee1</dc:creator>
      <dc:date>2020-12-07T08:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to read attributes and values from XML payload?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732484#M389410</link>
      <description>&lt;P&gt;It gives null.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 08:43:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732484#M389410</guid>
      <dc:creator>Chinmayee1</dc:creator>
      <dc:date>2020-12-07T08:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to read attributes and values from XML payload?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732485#M389411</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;it means your xml is not valid&lt;/P&gt;
&lt;P&gt;the link I shared I just tried same script&lt;/P&gt;
&lt;P&gt;var xTest = "&amp;lt;a&amp;gt;Hello World&amp;lt;/a&amp;gt;";&lt;BR /&gt;&lt;BR /&gt;gs.info(xTest);&lt;BR /&gt;&lt;BR /&gt;var obj = gs.xmlToJSON(xTest);&lt;BR /&gt;&lt;BR /&gt;gs.info(JSON.stringify(obj));&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/202186iE3E8B11CBD069B68/image-size/large?v=v2&amp;amp;px=999" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 09:00:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732485#M389411</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2020-12-07T09:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to read attributes and values from XML payload?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732486#M389412</link>
      <description>&lt;P&gt;I did substring and removed the first line. Now it shows the json value but with error.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 09:28:23 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732486#M389412</guid>
      <dc:creator>Chinmayee1</dc:creator>
      <dc:date>2020-12-07T09:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to read attributes and values from XML payload?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732487#M389413</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;if your XML is valid then you will get proper json&lt;/P&gt;
&lt;P&gt;Then you can parse the json&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 09:40:03 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-read-attributes-and-values-from-xml-payload/m-p/1732487#M389413</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2020-12-07T09:40:03Z</dc:date>
    </item>
  </channel>
</rss>

