title: Preserve carriage returns when i write/read from xml file using asp.net
body: <p>i have TextBox to take comment from user, comments will be saved into XML file
  the problem is when i write a text have enter key (new line ) it will save into the xml in the right way 
  like this </p>
  
  <pre><code>            &lt;comment&gt;
                sdagsg
                 fag
                  fdhfdhgf
                &lt;/comment&gt;
  </code></pre>
  
  <p>but when i read from the xml 
  looks like this " sdagsg fag fdhfdhgf"</p>
  
  <pre><code>           string strXstFile = Server.MapPath(@"~/TopicAndComments.xsl");
          XslCompiledTransform x = new XslCompiledTransform();
  
          // Load the XML 
          XPathDocument doc = new XPathDocument(Server.MapPath(@"~/TopicAndComments.xml"));
  
          // Load the style sheet.
          XslCompiledTransform xslt = new XslCompiledTransform();
          xslt.Load(strXstFile);
  
          MemoryStream ms = new MemoryStream();
          XmlTextWriter writer = new XmlTextWriter(ms, Encoding.ASCII);
          StreamReader rd = new StreamReader(ms);
          //Pass Topic ID to XSL file
          XsltArgumentList xslArg = new XsltArgumentList();
          xslArg.AddParam("TopicID", "", HiddenField_SelectedTopicID.Value.ToString());
          xslt.Transform(doc, xslArg, writer);
  
          ms.Position = 0;
          strHtml = rd.ReadToEnd();
          rd.Close();
          ms.Close();
  </code></pre>