title: Deserialization of xml file by using XmlArray?
body: <p>I am trying to deserialize this xml structure.</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;DietPlan&gt;
      &lt;Health&gt;
          &lt;Fruit&gt;Test&lt;/Fruit&gt;
          &lt;Fruit&gt;Test&lt;/Fruit&gt;
          &lt;Veggie&gt;Test&lt;/Veggie&gt;
          &lt;Veggie&gt;Test&lt;/Veggie&gt;
      &lt;/Health&gt;
  &lt;/DietPlan&gt;
  </code></pre>
  
  <p>And I tried:</p>
  
  <pre><code>[Serializable]
  [XmlRoot(ElementName = "DietPlan")]
  public class TestSerialization
  {
      [XmlArray("Health")]
      [XmlArrayItem("Fruit")]
      public string[] Fruits { get; set; }
  
      [XmlArray("Health")]
      [XmlArrayItem("Veggie")]
      public string[] Veggie { get; set; }
  }
  </code></pre>
  
  <p>But this throws an exception "The XML element is already present in the current scope. Use XML attributes to specify another XML name or namespace for the element."
  Thanks in adv.</p>