I am facing a problem after transformation of an XML file and saving it, i.e. I'm not getting the XML file top tag <?xml version="1.0" encoding="utf-8"?>
.
Below is my XSLT file:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="xml" indent="yes" encoding="utf-8"
omit-xml-declaration="no" />
<xsl:template match="*">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
<!-- ... -->
</xsl:stylesheet >
I think the absence of this tag causing errors like "An invalid character was found in text content."
Can any one help me to get a solution. Thanks in advance.