Why `CONTENT_TYPE_XML` isn't included here? And looks like `CONTENT_TYPE_TEXT_PLAIN` should within this `if` as well