Completed the XML serialization.