C# Deserialize recursive class

Will

New Member
I would like to have my data stored in an XML like this:\[code\]<MyType name="A"> <MyType name="B" /> <MyType name="E" /> <MyType name="C"> <MyType name="D"> <MyType name="G"> </MyType></MyType>\[/code\]MyType should be a class that contains an array of other MyType instances. Is it possible to deserialize a class like this (with System.Xml.Serialization.XmlSerializer) or do I have to load it with my own parser?Also, is it possible to deserialize from an xml with custom header, ie. " instead of ? TY for answers.
 
Back
Top