The help docs even have a specific suitelet to out...
# suitescript
j
The help docs even have a specific suitelet to output XML example (article number 159074782966), but it isn’t doing anything to set a header or a content type.