send application/xml file only if no errors