Closed
Solved
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
This content is closed to future replies and is no longer being maintained or updated.
Links may no longer function. If you have a similar request, please write a new post.
Hi Team,
I have a pagelist , i have to iterate on it and form xml for each page . Can you please help?
Regards
Pavani
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
If you want to get the xml string for individual pages by iterating then you can just call getXML() on the clipboardpage.
Can we use stream xml ?
property set xml method
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
I actually want to loop and convert each pxresult into xml can u please give me in detail steps to achieve this.
Accepted Solution
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.
Thanks a Lot srikanth it helped
Question
Question
Question Solved
Discussion
Question Solved
Question
Question
Question
Question
Question
Pega Collaboration Center has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.