Hi all,
I create an xml document through this code:
DATA : itab TYPE TABLE OF sflight, l_xml TYPE REF TO cl_xml_document, SELECT * FROM sflight INTO TABLE itab. CREATE OBJECT l_xml. CALL METHOD l_xml->create_with_data( dataobject = itab[] name = 'FLIGHTS' ).
Then I have a xml-file with root node named 'FLIGHTS' instead of the standard 'DATA' (see the parameters of method create_with_data).
Now all the sub-nodes have the node name 'item', how do I change these node names? Preferably I want the node to be <FLIGHTNUMBER id="CONNID"> and at "CONNID" there must be the value of the CONNID of that node.
Thnx in advance,
Fred.