cancel
Showing results for 
Search instead for 
Did you mean: 

XI XML Parser: tag content with "'", single apostrophe: invalid character

Former Member
0 Kudos

Hi all,

we import XML-documents with the file adapter in a sender channel. everything works well.

But if one of the XML-tag contents contains a single apostrophe ( ' ), then the XML parser stops with an error "An invalid character was found inside an entity reference. ". The message can not be processed. If I test the message content in the mapping -> no error.

When the single apostrophe is dereferenced by an additional single apostrophe the XML-File can be processed.

Question: does anybody know how this can be handled because it is not very nice of SAP XI to send single apostrophes in outgoing messages but cannot handle it in incoming messages from other systems? special adapter settings?

Thank you very much

regards

Hans

Accepted Solutions (0)

Answers (2)

Answers (2)

stefan_grube
Active Contributor
0 Kudos

> it is not very nice of SAP XI to send single apostrophes in outgoing messages but cannot handle it in incoming messages from other systems?

What do you mean with this?

single apostrophes are not allowed in XML. This is no special XI behaviour. You have to use this escape sequence: & apos ;

Regards

Stefan

GabrielSagaya
Active Contributor
0 Kudos

check bhavesh reply

also check

https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/9420 [original link is broken] [original link is broken] [original link is broken]

VijayKonam
Active Contributor
0 Kudos

In a UDF, replace ' with &quote;

VJ

Former Member
0 Kudos

Hello VJ,

the message monitoring XI is not able to display the sender message content. Do you think this problem can also be solved by an additional mapping with an UDF?

Or should the problem with special character be solved somehow in the FILE sender channel?

Thank you very much

regards

Hans