Question
Cognizant
SG
Last activity: 6 Jul 2023 6:16 EDT
Parse XML rules repeating Element parsing the map 1st element value to property in pagelist
Hi All,
i have XML in a string property, the XML is having a repeating element 1 & 2, after applying Apply-Parse-XML, the value for "item.title" in PEGA Page always set from the 1st element from the XML ("Element1") . the number of page list result count is correct, same as the number of the repeating element (item) which 2 for below XML.
Sample XML :
<order orderid="001">
<orderperson>Kuuga</orderperson>
<item>
<title>Element1</title>
<quantity></quantity>
<price></price>
</item>
<item>
<title>Element2</title>
<quantity>5</quantity>
<price>100.0</price>
</item>
<total>515.0</total>
<address addresstype="billing">
<town></town>
</address>
</order>
After Parsing :
Hi All,
i have XML in a string property, the XML is having a repeating element 1 & 2, after applying Apply-Parse-XML, the value for "item.title" in PEGA Page always set from the 1st element from the XML ("Element1") . the number of page list result count is correct, same as the number of the repeating element (item) which 2 for below XML.
Sample XML :
<order orderid="001">
<orderperson>Kuuga</orderperson>
<item>
<title>Element1</title>
<quantity></quantity>
<price></price>
</item>
<item>
<title>Element2</title>
<quantity>5</quantity>
<price>100.0</price>
</item>
<total>515.0</total>
<address addresstype="billing">
<town></town>
</address>
</order>
After Parsing :
| Item(1) | title | Element1 |
| quantity | ||
| price | ||
| Item(2) | title | Element1 |
| quantity | ||
| price |
Any idea what could be the reason?