close the XML