2009 Aug 07 9:18 AM
Hi All,
I have an ABAP internal table, which I have converted to XML format using a Simple Transformation. Now I have the XML data in a string variable. How do I display this XML data from the string variable, into an XML file with proper formatting and indentation? I searched a lot in SDN, but didn't find an appropriate answer.
Right now, my XML string variable looks like:
<datarow><ccode>1000</ccode><type>01</type></datarow>
I need to display this as an XML file, with proper indentation, which should be downloaded to the presentation server:
<datarow>
<ccode>1000</ccode>
<type>01</type>
</datarow>
Please help with the same.
Thank you in advance.
Vidya.
Hi All,
I have an ABAP internal table, which I have converted to XML format using a Simple Transformation. Now I have the XML data in a string variable. How do I display this XML data from the string variable, into an XML file with proper formatting and indentation? I searched a lot in SDN, but didn't find an appropriate answer.
Right now, my XML string variable looks like:
<datarow><ccode>1000</ccode><type>01</type></datarow>
I need to display this as an XML file, with proper indentation, which should be downloaded to the presentation server:
<datarow>
<ccode>1000</ccode>
<type>01</type>
</datarow>
Please help with the same.
Thank you in advance.
Vidya.
2009 Aug 07 9:19 AM
2009 Aug 07 9:35 AM
Hi Lakshman,
Thank you for your response...I am able to view the file in the correct format. However, I need this file in a downloadable manner, so that I may download the file on to the presentation server. Would you be able to help in that?
Thank you and Warm Regards,
Vidya.
2009 Aug 07 10:10 AM
Hi Lakshman,
Instead of calling DISPLAY_XML_STRING, I directly called the PARSE_XSTRING method of CL_XML_DOCUMENT_BASE. Then I called method EXPORT_TO_FILE, which then displays the file in the location specified.
Thanks for leading me in the right direction.
Vidya.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |