title: How should my class look to serialize XML?
body: <p>This is how my class is</p>
  
  <pre><code>class SerClass
  {
      Line[] Line;
      Circle[] Circle;
      Square[] Square;
  }
  </code></pre>
  
  <p>And this is how my XML is coming out:</p>
  
  <pre><code>&lt;Line .../&gt;
  &lt;Line .../&gt;
  &lt;Circle .../&gt;
  &lt;Circle .../&gt;
  &lt;Square .../&gt;
  &lt;Square .../&gt;
  </code></pre>
  
  <p>What should my code look like for me to be able to specify the order of the elements, say:</p>
  
  <pre><code>&lt;Square .../&gt;
  &lt;Line .../&gt;
  &lt;Circle .../&gt;
  &lt;Line .../&gt;
  &lt;Circle .../&gt;
  &lt;Square .../&gt;
  </code></pre>