make the XML valid