2014 Oct 15 7:09 AM
Hi,
I am working on online service forms. I will be receiving data from the forms in JSON format and convert it to XML format to proceed further. I don't want to create structures for each forms to do so.Can a generalised code be created irrespective of the fields in the online forms to generate the XML data.
Please help me out with any sample code you have.
Regards,
Sudip.
Hi,
I am working on online service forms. I will be receiving data from the forms in JSON format and convert it to XML format to proceed further. I don't want to create structures for each forms to do so.Can a generalised code be created irrespective of the fields in the online forms to generate the XML data.
Please help me out with any sample code you have.
Regards,
Sudip.
2014 Oct 18 2:56 AM
Hi
Have a look at CL_SOAP_XML_PARSER=>GET_FORMATTED_DATA
It's input is a XML string and the output is table with XML tags, their values and hierarchy level.
Regards Jack
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |