title: Return XML data from a web service
body: <p>What is the best way to create a web service that returns a set of x,y coordinates? I am not sure on the object that is the best return type. When consuming the service I want to have it come back as xml preferibly something like this for example:</p>
  
  <pre><code>&lt;TheData&gt;
    &lt;Point&gt;
      &lt;x&gt;0&lt;/x&gt;
      &lt;y&gt;2&lt;/y&gt;
    &lt;/Point&gt;
    &lt;Point&gt;
      &lt;x&gt;5&lt;/x&gt;
      &lt;y&gt;3&lt;/y&gt;
    &lt;/Point&gt;
  &lt;/TheData&gt;
  </code></pre>
  
  <p>If someone has a better structure to return please help I am new at all this.</p>