Https endpoint to return XML

Within the UI, the https endpoint feature only supports returning json/ejson. Is there a way to return XML?
I intend to build an integration with plivo and for call controlling plivo expects an XML document.
Thanks