can handle both application/xml and text_xml