I am pretty much new to PEGA. I am looking for some help regarding creating a raw XML from clipboard page.
I am using Pega 7.3.1. So far i have created a rest connector using the integration wizard which will give the response in the JSOn format which is mapped to clipboard page. I am also able to create the XML out of the clipboard page using the function getXMLOfPage(). However, the XML is not a raw XML where in we have only the tags and the values. The generated XML from the clipboard contains extra elements like <pxObjClass>, <rowdata REPEATINGINDEX="1">, <REEATINGTYPE="PageList">. I need to get rid of all these extra elements and have a plain/raw XML.
Kindly help me out with detailed steps on how to achieve this. Step by step instructions would be of great help. TIA
***Edited by Moderator Marissa to update categories***
As mentioned i am new to PEGA. If you can share any links that explains in detailed steps on how to remove the extra elements from the XML after calling getXMLOfPage would be helpful. Also a sample java code would be highly appreciated.
I was able to create a raw XML from the clipboard page. The XML was created from the JSON response which was mapped to clipboard page using the JAVA method mystepPage.getXML(). This method getXML() will create a XML but will have pxObjClass added to every page. To remove any unwanted elements in the generated XML use the replaceAll method and replace it with empty string.