Skip to Content
0
Former Member
Aug 24, 2007 at 10:47 AM

Question to CL_XML_DOCUMENT: CREATE_WITH_DATA

125 Views

Hi colleagues,

i use CL_XML_DOCUMENT: CREATE_WITH_DATA to create a XML file.

This works fine, but there is one thing that I would like to change:

The created XML has the following structure:

<?xml version="1.0" ?>

- <DATA>

- <item>

<KEY>ABC</KEY>

<VALUE>00</VALUE>

</item>

Is it somehow possible to change the structure to the following?:

<DATA>

<Item KEY="ABC" VALUE="00" />

I can read a file that had a strucuture like the structure I would like to

have with CL_XML_DOCUMENT->IMPORT_FROM_FILE , so it should be a valid

represantion of a XML.

Thanks for any responses.

Best Regards

Joachim