cope with text/xml as per comment 20 (bug 903567)
Merge pull request #361 from andymckay/903567

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