I have this class
public class dtoObject : CommonBase
{
[XmlArray("SomeItems"), XmlArrayItem("SomeItem")]
public List<dtoSomeItem> SomeItems
{
get { return _SomeItems; }
set { _SomeItems = value; }
}
}
and I would would like to use XML Serialization to make the XML string appear to be:
<Objects>
<Object>
<SomeItems>
<SomeItem>
1
</SomeItem>
<SomeItem>
2
</SomeItem>
</SomeItems>
</Object>
<Object>
<SomeItems>
<SomeItem>
3
</SomeItem>
<SomeItem>
4
</SomeItem>
</SomeItems>
</Object>
</Objects>
But for the life of me I cant figure out what to put before
public class dtoObject
in terms of Attributes, so that I get
<Objects><Object>...</Object><Object>...
when I serialize this.
Any ideas?