locked
Error:Token Content in state Prolog would result in an invalid XML document. RRS feed

  • Question

  • Below is my Code

     using (XmlTextWriter tw = new XmlTextWriter(XLSPath, System.Text.Encoding.UTF8))
       {
        tw.Formatting = Formatting.Indented;
        tw.Indentation = 3;
        tw.WriteStartDocument();
        xsl.Transform(xmldoc, null, tw);//Performa XSLT transformation.
        tw.Close();
    
       }
    

    I am getting the following error.

    Token Content in state Prolog would result in an invalid XML document.

    Tuesday, June 22, 2010 9:25 AM

Answers

  • I have actually made some mistake with my Xml file..

    It's working now..

    Thanks for Guys who tried..

    Tuesday, June 22, 2010 1:05 PM