cancel
Showing results for 
Search instead for 
Did you mean: 

Avoid explicit closing tag in XML using graphical mapping

Former Member
0 Kudos

Hi,

I created a data type with an element called TAG1 which has an attribute called attr.

I mapped an empty constant to the element and the value XXX to the attribute. I`m using graphical mapping and the XML I get is the following:

<TAG1 attr = u201CXXXu201D></TAG1>

But for reasons of volume I need to generate the XML without the explicit closing tag, such as:

<TAG1 value = u201CXXXu201D/>

Is there any possibility to achieve this with graphical mapping?

Thanks & Best Regards,

Viviana

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Graphical Mapping is based on message structure.

example we do mapping between xsd's not in between xml.

So it is not possible in Graphical Mapping..XI accept and send XML message, if the XML is not wel formed you cannot then you are going to face an Error in lots of steps.

what is the size of payload in your case?

Thanks

Farooq

Answers (1)

Answers (1)

stefan_grube
Active Contributor
0 Kudos

> But for reasons of volume I need to generate the XML without the explicit closing tag, such as:

>

> <TAG1 value = u201CXXXu201D/>

>

> Is there any possibility to achieve this with graphical mapping?

This is not posible. The graphical mapping always creates start and end tag, even for empty elements.

You need a seperate mapping step with XSLT or Java mapping.

Regards

Stefan