cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Add Attribute to the XML Document from ABAP Structure

Former Member
377

Hi All,
I have a 3rd party XSD Document from which i created an ABAP Structure which i then converted into a XML Document which looks like this:

<employees>
<employee>
<name> Test </name>
<employee>
</employees>

Now, My employee structure has following fields:
ID, NAME

I want to include ID as an attribute to the Employee Node. How to achieve this

<employees>
<employee id: '121231321'>
<name> Test </name>
<employee>
</employees>



How to add 'id' as an attribute in a XML Node

Accepted Solutions (0)

Answers (0)