title: How to set value to Interface XML file in C#
body: <p>I have a list of people. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>List&lt;People&gt; people = new List&lt;People&gt;
    {
      new People() {Id = 1, FirstName = "Will", LastName = "Petit", Address = "123 Street", Type = "Student" },
      new People() {Id = 2, FirstName = "Anna", LastName = "Poter", Address = "123 Street", Type = "Employee"}
    }</code></pre>
  </div>
  </div>
  </p>
  
  <p>So, I just researched XML and I want to set value to XML and check my XML schema from People's list. How can I do that ? Please help me.</p>
  
  <p>Final result is: </p>
  
  <pre><code>&lt;x:People xmlns:x="http://www.w3schools.com"&gt;
    &lt;Student NoId="1"&gt;
      &lt;FirstName&gt;Will&lt;/FirstName&gt;
      &lt;LastName&gt;Petit&lt;/LastName&gt;
      &lt;Address&gt;123 Street&lt;/Address&gt;
    &lt;/Student&gt;
    &lt;Employee NoId="2"&gt;
      &lt;FirstName&gt;Anna&lt;/FirstName&gt;
      &lt;LastName&gt;Poter&lt;/LastName&gt;
      &lt;Address&gt;123 Street&lt;/Address&gt;
    &lt;/Employee&gt;
  &lt;/x:People&gt;
  </code></pre>