If I run the plugin as is, it works as expected (taking away on the site and the RSS feed).
Now, if I try adding my code in, it doesn’t work (although the main site isn’t affected by it). I’m gonna try to find out what’s the issue, but when I change things, like adding ", `, ’ around the text/xml, it gives feed errors.
If someone happens to know my syntax error, please feel free to post it.
EDIT: I got it to work doing this...
$contentType = $modx->documentObject['contentType'];
if($contentType == "text/xml") {
...
}