Test XML (de)serialization