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?
Thanks!
> 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?
You can specify the serialization order with the Order property of
XmlElementAttribute or XmlAttributeAttribute
<http://msdn2.microsoft.com/en-us/library/system.xml.serialization.xmlelementattr
ibute.order.aspx>

Signature
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Alan Cohen - 26 Jun 2007 17:08 GMT
Thanks - looks like it would work perfectly if I were runing .NET 2.0,
but this needs it done in .NET 1.1.
Drat!
>> I have an object which gets serialized to XML. Upon deserialization,
>> I'd like to control the order in which attributes are deserialized.
[quoted text clipped - 3 lines]
> XmlElementAttribute or XmlAttributeAttribute
> <http://msdn2.microsoft.com/en-us/library/system.xml.serialization.xmlelementattr
ibute.order.aspx>