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