Direct object to XML serialization