Question


IN
Last activity: 9 Nov 2017 13:23 EST
How to form xml in activity?
Hi Team,
I have a pagelist , i have to iterate on it and form xml for each page . Can you please help?
Regards
Pavani
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution


Truviq Systems Private Limited
IN
Hi Pavani,
You can use the function getXMLOfPage as below in activity and save it to a Param value.
Hope this helps !
Thanks,
Srikanth Y.


Pegasystems Inc.
US
Hi Pavani,
You can use getXML method to get the xml string from the clipboardpage as follows:
ClipboardPage cp = tools.findPage("PageListPage");
String xml = cp.getXML(.pxResults);
This way you can get the xml for the page list or you can also try to get the xml string for each page.
Regards
Mahesh


Pegasystems Inc.
US
If you want to get the xml string for individual pages by iterating then you can just call getXML() on the clipboardpage.


IN
Can we use stream xml ?
property set xml method


Pegasystems Inc.
US
Yes, you can also use xml stream rule with property-set-xml method.
Reference : https://community.pega.com/how-create-xml-document-using-xml-stream-rules


IN
I actually want to loop and convert each pxresult into xml can u please give me in detail steps to achieve this.
Accepted Solution


Truviq Systems Private Limited
IN
Hi Pavani,
You can use the function getXMLOfPage as below in activity and save it to a Param value.
Hope this helps !
Thanks,
Srikanth Y.


IN
Thanks a Lot srikanth it helped