S
S
Hi there,
Here's a question for ya:
I'm serializing something that looks like this:
[XmlRoot(ElementName="Widget")]
Class Widget --> My base class
[XmlArray(ElementName="TextGroups")]
[XmlArrayItem(ElementName="TextGroup",Type=typeof(ClassTextGroup))]
public ArrayList TextGroups --> An arraylist of collections
(TextGroup Collections)
TextGroup --> A custom collection
(collectionbase) of Text objects
[XmlRoot(ElementName="Text")]
Text --> The text object
Problem is, the xml comes out like this:
<Widget>
<TextGroups>
<ArrayofText>
<Text>
I would have thought my XmlArrayItem attribute on the ArrayList would have
taken care of this "Arrayof..." business, but is it running into a problem
because it's an array of, essentially, arrays? Any ideas on how I could fix
this without changing the structure of my class??
Thanks,
S
Here's a question for ya:
I'm serializing something that looks like this:
[XmlRoot(ElementName="Widget")]
Class Widget --> My base class
[XmlArray(ElementName="TextGroups")]
[XmlArrayItem(ElementName="TextGroup",Type=typeof(ClassTextGroup))]
public ArrayList TextGroups --> An arraylist of collections
(TextGroup Collections)
TextGroup --> A custom collection
(collectionbase) of Text objects
[XmlRoot(ElementName="Text")]
Text --> The text object
Problem is, the xml comes out like this:
<Widget>
<TextGroups>
<ArrayofText>
<Text>
I would have thought my XmlArrayItem attribute on the ArrayList would have
taken care of this "Arrayof..." business, but is it running into a problem
because it's an array of, essentially, arrays? Any ideas on how I could fix
this without changing the structure of my class??
Thanks,
S