So i'm trying to output the content of a template in xml and saw that the documentation mentioned an output class with functions like set_content_type (https://docs.expressionengine.com/latest/development/legacy/libraries/output.html). When I try to call this function using:
the page loads with an error:
"Call to undefined method EE_Output::set_content_type()"
Other functions of the output class such as "parse_exec_vars" work fine. Am I forgetting something that allows this function to be used? Also I am currently using expressionengine4