cancel
Showing results for 
Search instead for 
Did you mean: 

Missing XML Declaration

Former Member
0 Kudos

Hi

I have a http to Idoc scenario which currently receives messages without the XML declaration. i.e. <? XML Version="1.0" encoding="UTF-8" ?>.

The messages are successfully going through to SAP, but when you view the payload in SXI_MONITOR the message is being treated as TEXT rather than XML.

When the same message is sent with the XML declaration included, XI treats the message as XML rather than TEXT.

Are there any adverse impacts in continuing to send messages into XI without an XML declaration?

Many thanks.

Daniel

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

There is only one impact: When the declaration is missing, the XI assumes, that the content is encoded in UTF-8. That causes problems, when this is not the case.

Stefan

Former Member
0 Kudos

Thanks Stefan, I will continue with no XML declaration for the time being.

Regards

Daniel

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I thnik, the declaration is the one which show that it is a XML file and of which version...with out this the file is treated as normal text file...

Sreedhar