XmlElement has an \"Order\" attribute which you can use to specify the precise order of your properties (in relation to each other anyway)
xmlNode.Attributes.InsertAfter(newAttribute, refAttribute); xmlNode.Attributes.InsertBefore(newAttribute, refAttribute);