to_xml for DataObject