title: How to remove white spaces before xml nodes in C#
body: <p>could anyone please help me on how to remove all the white spaces between XML tags as shown below:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;note&gt;
    &lt;to&gt;Tove&lt;/to&gt;
    &lt;from&gt;Jani&lt;/from&gt;
    &lt;heading&gt;Reminder&lt;/heading&gt;
    &lt;body&gt;Don't forget me this weekend!&lt;/body&gt;
  &lt;/note&gt;
  </code></pre>
  
  <p>To:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;note&gt;
  &lt;to&gt;Tove&lt;/to&gt;
  &lt;from&gt;Jani&lt;/from&gt;
  &lt;heading&gt;Reminder&lt;/heading&gt;
  &lt;body&gt;Don't forget me this weekend!&lt;/body&gt;&lt;/note&gt;
  </code></pre>
  
  <p>Need xml nodes in different lines but spaces before xml nodes should not be there</p>