title: Windows Form project proper format for XML in TextBox field
body: <p>on my project i have a form in which i have <code>TextBox</code> in some point of executing my program i want to put <code>XML</code> string in my <code>TextBox</code> - nothing complicated.<br> Problem lies in the format in which this <code>XML</code> is being displayed in <code>TextBox</code> which is:</p>
  
  <pre><code>  &lt;?xml version="1.0" encoding="utf-16" ?&gt;&lt;IOTPMessage xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
    &lt;Element1&gt;value&lt;/Element1&gt;&lt;Element2&gt;value&lt;/Element2&gt;&lt;Element3&gt;value&lt;/Element3&gt;&lt;/IOTPMessage&gt;
  </code></pre>
  
  <p>I want it to look like proper <code>XML</code> look like (with new lines, tabulators) which is easy to read :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-16" ?&gt;
  &lt;IOTPMessage xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
        &lt;Element1&gt;value&lt;/Element1&gt;
        &lt;Element2&gt;value&lt;/Element2&gt;
        &lt;Element3&gt;value&lt;/Element3&gt;
  &lt;/IOTPMessage&gt;
  </code></pre>
  
  <p>The way i put <code>XML</code> string to textBox:</p>
  
  <pre><code>TextBox someBox;
  someBox.Append(XMLstring);
  </code></pre>
  
  <p>To be honest i don't even knew where to start - besides looking for proper articles or samples which i didn't find, maybe anyone of you can redirect me to somewhere where i can find solution?</p>