cancel
Showing results for 
Search instead for 
Did you mean: 

Removing XML declaration in the receiver output file

Former Member
0 Kudos

Hi All,

I am working on ABAP Proxy -> PI 7.31 -> FILE scenario. The output file has the extension .xml. I want to remove the declaration part of the version as well as the encoding part from the XML structure.

I want to remove this part <?xml version="1.0" encoding="UTF-8"?>.

Is it possible to remove this part as I know its not mandatory i.e. by inserting any parameter in the receiver file communication channel?

Regards

Rebecca

0 Kudos

Hi,

how did you solve?

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>Is it possible to remove this part as I know its not mandatory i.e. by inserting any parameter in the receiver file communication channel?

I don't believe so - you'd need to remove that in XSLT mapping (or java mapping)

which you can put as a second mapping to your current one in the operation mapping,

Regards,

Michal Krawczyk

Answers (3)

Answers (3)

former_member192851
Active Participant
0 Kudos

Example of Java Mapping to remove <?xml version="1.0" encoding="UTF-8"?>.

http://chizztectep.blogspot.ru/2011/11/few-examples-how-to-remove-xml.html

iaki_vila
Active Contributor
0 Kudos

Hi Rebbeca,

You can try to skip the first line at file adapter level: http://scn.sap.com/thread/961164

Regards.

former_member184789
Active Contributor
0 Kudos

Hi,

Pl go through the solutions mentioned in below thread:

http://scn.sap.com/thread/2124862