cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Need to remove XML version header on XML Document

Former Member
0 Likes
1,817

Hello Everybody,

I am generating an XML file using an FTP adapter and in the generated XML we are having first line as

<XML vesrion ... >, is there any way to remove this line from XML document?

Please provide your inputs as soon as possible.

thanks,

Vijay Kumar T.

View Entire Topic
stefan_grube
Active Contributor
0 Likes

Use this xslt:

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

  <xsl:output method="xml" omit-xml-declaration="yes"/> 

  <xsl:template match="*">
  <xsl:copy-of select="." /> 
  </xsl:template>
  </xsl:stylesheet>

Former Member
0 Likes

Hi Stefan,

Thanks for your solution it resolved my issue.

Thanks,

Vijay Kumar T.