Array Serialization
From: S (stephen_at_acsalaska.com)
Date: 04/29/04
- Next message: msnews.microsoft.com: "Creating a assembly with a COM interface"
- Previous message: DraguVaso: "Re: Copy New Version of application in Other Directory"
- Next in thread: Steven Cheng[MSFT]: "RE: Array Serialization"
- Reply: Steven Cheng[MSFT]: "RE: Array Serialization"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 29 Apr 2004 02:00:17 -0800
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
- Next message: msnews.microsoft.com: "Creating a assembly with a COM interface"
- Previous message: DraguVaso: "Re: Copy New Version of application in Other Directory"
- Next in thread: Steven Cheng[MSFT]: "RE: Array Serialization"
- Reply: Steven Cheng[MSFT]: "RE: Array Serialization"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|