title: How to remove the "\r\t\t" escape characters from XmlReader
body: <p>Reading outer Xml from an <code>XmlReader</code>, how do I remove whitespaces("\n\t\t") in my output?</p>
  
  <pre><code>using (XmlReader reader = XmlReader.Create(new FileStream(archivePath, FileMode.Open)))
  {
      while (reader.Read())
      {
          if (reader.NodeType == XmlNodeType.Element)
          {
              if (reader.Depth == 1)
              {
                  var xe = XNode.ReadFrom(reader) as XElement;
                  XElement.Parse(xe.ToString(), LoadOptions.None);
  
                  var reader2 = xe.CreateReader();
                  reader2.MoveToContent();
                  var content = reader2.ReadOuterXml(); 
              }
          }
      }
  }
  </code></pre>