title: Getting the output of an xslt transformed file in XML format
body: <p>I have transformed one XML file to an another XML file (in desired structure) using XSLT. However i am unable to view the transformed file in XML format. It shows me plain text values. </p>
  
  <p>This is my original XML  file :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  &lt;?xml-stylesheet type="text/xsl" href="xsl.xsl"?&gt;
  &lt;NewDataSet&gt;
  &lt;Table&gt;
   &lt;IMPORT_ID&gt;2&lt;/IMPORT_ID&gt;
   &lt;SEQ_NO&gt;1&lt;/SEQ_NO&gt;
   &lt;LEVEL_TAG&gt;RANDOMISATIONDATA&lt;/LEVEL_TAG&gt;
   &lt;INSERTED&gt;2004-01-21T12:42:53+05:30&lt;/INSERTED&gt;
   &lt;INSERTED_BY&gt;kfsv433&lt;/INSERTED_BY&gt;
  &lt;/Table&gt;
     &lt;/NewDataSet&gt;
  </code></pre>
  
  <p>And i coverted it to my desired output using the following XSLT :</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
  &lt;xsl:output method="xml" version="1.0" indent="yes"/&gt; 
  &lt;xsl:strip-space elements="*"/&gt; 
    &lt;xsl:template match="/"&gt; 
    &lt;xsl:apply-templates /&gt; 
   &lt;/xsl:template&gt; 
   &lt;xsl:template match="IMPORT_ID"&gt; 
   &lt;IMPORT_ID SEQ_NO="{SEQ_NO/text()}"/&gt; 
   &lt;/xsl:template&gt; 
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>I get the output as </p>
  
  <pre><code>1RANDOMISATIONDATA2004-01-21T12:42:53+05:30kfsv433
  </code></pre>
  
  <p>I can see that what ever XSLT i have implemented is showing the correct result but i need to get this in XML format. </p>
  
  <p>Kindly help me.</p>