Groups | Blog | Home
all groups > dotnet xml > june 2007 >

dotnet xml : Control Order of Deserialization Of An Object?



Alan Cohen
6/26/2007 11:51:48 AM
I have an object which gets serialized to XML. Upon deserialization,
I'd like to control the order in which attributes are deserialized. Any
way to do this?

Alan Cohen
6/26/2007 12:08:00 PM
Thanks - looks like it would work perfectly if I were runing .NET 2.0,
but this needs it done in .NET 1.1.

Drat!
[quoted text, click to view]
Martin Honnen
6/26/2007 6:02:54 PM
[quoted text, click to view]

You can specify the serialization order with the Order property of
XmlElementAttribute or XmlAttributeAttribute
<http://msdn2.microsoft.com/en-us/library/system.xml.serialization.xmlelementattribute.order.aspx>



--

Martin Honnen --- MVP XML
AddThis Social Bookmark Button