title: Remove <ArrayOf. From MVC Web Api response
body: <p>I am getting the following response from a standard MVC 4 WebApi project;</p>
  
  <pre><code>&lt;ArrayOfProduct xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
  &lt;Product&gt;
  &lt;Id&gt;1&lt;/Id&gt;
  &lt;Name&gt;Tomato Soup&lt;/Name&gt;
  &lt;Category&gt;Groceries&lt;/Category&gt;
  &lt;Price&gt;1&lt;/Price&gt;
  &lt;/Product&gt;
  &lt;/ArrayOfProduct&gt;
  </code></pre>
  
  <p>I am trying to make it so that it returns</p>
  
  <pre><code>&lt;Products&gt;
  &lt;Product&gt;
  &lt;Id&gt;1&lt;/Id&gt;
  &lt;Name&gt;Tomato Soup&lt;/Name&gt;
  &lt;Category&gt;Groceries&lt;/Category&gt;
  &lt;Price&gt;1&lt;/Price&gt;
  &lt;/Product&gt;
  &lt;/Products&gt;
  </code></pre>
  
  <p>I have found many reference to various methods that supposedly solve this, none work;</p>
  
  <p>Changing the default serializer does not work.</p>
  
  <p>Creating a customer serializer for <code>Product</code> does not work.</p>
  
  <p>Creating a new class that has <code>List&lt;Product&gt;</code> exposed with suitable XmlRoot and XmlElement attributes does not work.</p>
  
  <p>Adding <code>Datacontract</code> attributes does not work.</p>
  
  <p>Adding <code>CollectionDatacontract</code> attributes does not work.</p>
  
  <p>This appears to be so simple to everyone else, except me!</p>