title: Ignore Class name XML Serialization
body: <p>I am not sure if this question is really trivial or not but I am trying to find a simple solution to a simple problem without going to any level of complexity.
  I have a class contains a set of properties with same characterstics and I need to encapsulate them without changing the XML output results, how can I do that?</p>
  
  <p>Old Class Form</p>
  
  <pre><code>Class School
  {
  public string studentname;
  public string studentID
  public string roomname;
  public string roomID
  }
  </code></pre>
  
  <p>new class format</p>
  
  <pre><code>Class School
      {
      public Student x;
      public Room y
      }
  class Student
  {
   public string studentname;
      public string studentID
  }
  class Room
  {
      public string roomname;
      public string roomID
  }
  </code></pre>
  
  <p>XML Format that I need to keep</p>
  
  <pre><code>   &lt;School&gt;
       &lt;studentname&gt;xxx&lt;/studentname&gt;
       &lt;studentID&gt;yyy&lt;/studentID&gt;
       &lt;roomname&gt;zzz&lt;/roomname&gt;
       &lt;roomID&gt;ddd&lt;/roomID&gt;
  &lt;/School&gt;
  </code></pre>