I am trying to serialize something in the format:
<groups>
<group attr1="" attr2="">VALUE</group>
<group attr1="" attr2="">VALUE</group>
<group attr1="" attr2="">VALUE</group>
</groups>
I am able to get a format like"
<groups>
<group attr1="1234" attr2="2" />
</groups>
using the code:
[XmlArray("groups")]
[XmlArrayItem("group",typeof(Group))]
with the attributes declared inside of the Group class.
How can I set the VALUE of the group element?
I have also tried making the XmlAttrayItem of type String and I can
set the VALUE but cannot add the attributes.
Any help would appreciated.
Thanks!