fixed objectToXML closing tag