Skip to Content
1

Add Attribute to the XML Document from ABAP Structure

Dec 01, 2016 at 10:20 PM

49

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers