cope with text/xml as per comment 20 (bug 903567) (bug 903567)