I have a URL like www.xxx.com/get-xml-content. I want to send an XML file as a response to this URL request.
<?xml version="1.0" encoding="UTF-8"?>
<response>
<playtext>I lov u</playtext>
</response>
The XML I created will looks like above. I want to send this XML as a response to the given URL. How can it be possible in Node.js?