Added object XML serialization.