for some time now I have been trying to solve the following problem and I\'m starting to run out of ideas:
I have generated a set of C# classes from an xsd schema using
I wrote an article some time ago about this exact problem, perhaps it can help you.
http://www.thomaslevesque.com/2009/06/12/c-parentchild-relationship-and-xml-serialization/
XmlSerializer should maintain simple object hierarchies for serialization and deserialization. Complex things such as arrays or lists containing more than one type of object are a bit tricker. . . but possible.