I think you're on the right track with the idea of Reflection.
Since you probably have a wrapper around the XML operations, you can take the target object, usually deserialize to a new object, and then do something like cloning, copying only the properties, the default values, one after the other.
It should not be so difficult to implement this, and it will look for consumers from the rest of your application, as well as in-place deserialization.
Tiberiu ana
source share