I've got an xml file with such structure:
<panel>
<tr>
<td>
<element>
... smth
</element>
</td>
<td>
<element>
... smth
</element>
</td>
<td>
<element>
... smth
</element>
</td>
</tr>
<tr>
<td>
<element>
... smth
</element>
</td>
<td>
<element>
... smth
</element>
</td>
</tr>
</panel>
This is my object structure:
public class Panel
{
[XmlArray(ElementName="tr")]
[XmlArrayItem(ElementName="td")]
public List<tr> Tr { get; set; }
}
public class tr
{
[XmlArray(ElementName="tr")]
[XmlArrayItem(ElementName="td")]
public List<td> td { get; set; }
}
public class td
{
public Element Element { get; set; }
}
After deserialization I have Panel with 5 tr class objects. Can you help me to correct annotations