title: Convert XmlDocument to String
body: <p>Here is how I'm currently converting <strong>XMLDocument</strong> to <strong>String</strong></p>
  
  <pre><code>StringWriter stringWriter = new StringWriter();
  XmlTextWriter xmlTextWriter = new XmlTextWriter(stringWriter);
  
  xmlDoc.WriteTo(xmlTextWriter);
  
  return stringWriter.ToString();
  </code></pre>
  
  <p>The problem with this method is that if I have <strong>"</strong> ((quotes) which I have in attributes) it escapes them.</p>
  
  <p>For Instance:</p>
  
  <pre><code>&lt;Campaign name="ABC"&gt;
  &lt;/Campaign&gt;
  </code></pre>
  
  <p>Above is the expected XML. But it returns</p>
  
  <pre><code>&lt;Campaign name=\"ABC\"&gt;
  &lt;/Campaign&gt;
  </code></pre>
  
  <p>I can do <strong>String.Replace "\"</strong> but is that method okay? Are there any side-effects? Will it work fine if the XML itself contains a <strong>"\"</strong></p>