cancel
Showing results for 
Search instead for 
Did you mean: 

xml declaration with line feed.

Former Member
0 Kudos

Hello,

I have a simple XSLT Abap transformation and it's ok. I just need to remove the line feed that XI inserts after the xml declaration, because the legacy system rejects xmls with special characters.

I have tried with expressions like:

(Just to remove the line feed after the xml declaration)

Your help would be appreciated.

Regards,

Yuvá

Accepted Solutions (1)

Accepted Solutions (1)

henrique_pinto
Active Contributor
0 Kudos

But the line feed is required by the specification.

I'm sorry but I'm afraid you'll have to change in your legacy system.

Regards,

Henrique.

Former Member
0 Kudos

if you are using NFS in the receiver file adapter, then you can look at executing a simple shell script to remove the line feed.

Call the shell script in the command line execution after msg processing parameter.

Cheer's

Former Member
0 Kudos

Hi Henrique,

I think you are right.

With some parsers is possible but not with XI.

Thanks for your interest.

Regards,

Yuván.

Former Member
0 Kudos

Hi Dreamcatcher ,

Unfortunately I'm not using NFS in the adapter and the generated XML files are huge.

Thanks for your interest.

Regards,

Yuván.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

See this link.

www.w3cschools.com/xml/

Regards

akshay.

    • Reward points if find useful.

Former Member
0 Kudos

Hi

please check with these optins in File adapter

http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/frameset.htm.

/people/sravya.talanki2/blog/2005/08/11/solution-to-the-problem-encountered-using-variable-substitution-with-xi-sp12

Former Member
0 Kudos

Hello Siva,

Thanks for your help, but my problem isn't in the adapter, The File Adapter don't have File Content Conversion because the output is an XML. I don't need to change the payload.

The problem is just with a line feed after the xml declaration.

Regards,

Yuván.