title: How to create an XML document using XmlDocument?
body: <p>how to create an XML document like this?</p>
  
  <pre><code>&lt;body&gt;
    &lt;level1&gt;
      &lt;level2&gt;text&lt;/level2&gt;
      &lt;level2&gt;other text&lt;/level2&gt;
    &lt;/level1&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>using <code>XmlDocument</code> in C#</p>