title: How can I format the XML response of my REST web service?
body: <p>I am playing around with <a href="http://www.codeproject.com/Articles/255684/Create-and-Consume-RESTFul-Service-in-NET-Framewor" rel="nofollow">this simple tutorial</a> in C# and here is the kind of XML you can GET. </p>
  
  <pre><code>    &lt;Person xmlns="http://schemas.datacontract.org/2004/07/RESTfulDemo" 
        xmlns:i="http://www.w3.org/2001/XMLSchema-instance"&gt;
        &lt;Age&gt;23&lt;/Age&gt;
        &lt;ID&gt;1&lt;/ID&gt;
        &lt;Name&gt;Bob Kohler&lt;/Name&gt;
      &lt;/Person&gt;
  </code></pre>
  
  <p>Here is the Person.cs class :</p>
  
  <pre><code>    using System;
      using System.Collections.Generic;
      using System.Linq;
      using System.Web;
      using System.Runtime.Serialization;
  
      namespace RESTfulDemo
      {   
  
        [DataContract]
        public class Person
        {
           [DataMember]
           public string ID;
  
           [DataMember]
           public string Name;
  
           [DataMember]
           public string Age;
        }
      }
  </code></pre>
  
  <p>1) How should can I add attributes / Prefixes in my XML for each data member ?</p>
  
  <p>2) How can I set the heading of my XML to this (or anything else) :</p>
  
  <pre><code>    &lt;?xml version="1.0"?&gt;
  </code></pre>