Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

XML document emty tags

former_member306083
Participant
0 Likes
440

Hi .

I have a problem with the empty tags when I am generating the XML document.

The CALL TRANSFORMATION generates de end-tag without de start-tag (I know that is well formed) but we need that generates with start-tag.

For example generates:

<item>

<DATE>2008-11-28</DATE>

<SHIPID/>

u2026.

</item>

And we need:

<item>

<DATE>2008-11-28</DATE>

<SHIPID></SHIPID>

u2026.

</item>

We almost try with IF_XLM_DOCUMENT and behave the same.

Any suggestion?

Thanks and best regards

Spc

Hi .

I have a problem with the empty tags when I am generating the XML document.

The CALL TRANSFORMATION generates de end-tag without de start-tag (I know that is well formed) but we need that generates with start-tag.

For example generates:

<item>

<DATE>2008-11-28</DATE>

<SHIPID/>

u2026.

</item>

And we need:

<item>

<DATE>2008-11-28</DATE>

<SHIPID></SHIPID>

u2026.

</item>

We almost try with IF_XLM_DOCUMENT and behave the same.

Any suggestion?

Thanks and best regards

Spc

2 REPLIES 2
Read only

Former Member
0 Likes
409

That is how XML puts empty tags.

i dont think it can be changed...

Read only

0 Likes
409

XML provides special syntax for representing an element with empty content. The following examples are equivalent in XML:

<tag></tag>

<tag />

<tag/>

The CALL TRANSFORMATION uses <tag/> but my client ask me to use <tag></tag>

what can I change this syntax?

Best regards and thank you

spc