title: How to create Dynamic Form in C# based on XML
body: <p>I want to create a dynamic windows form in C# based on XML.
  i want to use the xmlTextReader class, and use the while (reader.read()) function that will go over the content of the XML and will create the form.
  it should be very simple (super simple!!)
  for example, if my XML contains:</p>
  
  <pre><code> &lt;TITLE&gt;
    &lt;Field&gt;
      &lt;field_name&gt;Tom&lt;/field_name&gt;
      &lt;field_type&gt;textbox&lt;/field_type&gt;
      &lt;is_mandatory&gt;1&lt;/is_mandatory&gt;
    &lt;/Field&gt;
  &lt;/TITLE&gt;
  </code></pre>
  
  <p>it means i need a textbox with the name of "Tom" and it should be mandatory.
  and if i will create more "Field" elements, it will create another one below the textbox.</p>
  
  <p>can you give me an example code of how to do it?</p>
  
  <p>thanks!!!</p>