cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove XML header?

Former Member
0 Kudos

Could anyone please let me know how to remove the XML header (<?xml version=\"1.0\" encoding=\"UTF-8\"?>) in XSL mapping? My trading partner doesn't require the XML header in the file that we are sending to them.

Thanks,

Abhi

Accepted Solutions (1)

Accepted Solutions (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

In your XSL output, you can add

omit-xml-declaration="yes"

Hope this helps,

Mark

Edited by: Mark Dihiansan on Oct 19, 2011 5:31 AM

Former Member
0 Kudos

Thanks Mark. Could you please tell me where exactly I should be using this code in the XSL? Will something like this be okay - <xsl:output method="text" version="1.0" encoding="UTF-16" indent="no" omit-xml-declaration="yes"/> ?

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

<xsl:output method="text" version="1.0" encoding="UTF-16" indent="no" omit-xml-declaration="yes"/>

Yup, this is correct.

Regards,

Mark

Former Member
0 Kudos

Thanks Mark. This resolved my issue.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello this did solve my issue. I have same issue infact. I used this xsl mapping  as

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

   <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>

  

</xsl:stylesheet>

But my output xml struıcture has broken. Should I  do some changing in my xsl mapping and how ?

Regards,

Ceren.

RaghuVamseedhar
Active Contributor
0 Kudos

Ceren,

Please create a new thread.