Depending on what flavour of JS/JS engine you're running (SpiderMonkey, AS3) you can simply write inline XML, into which you can place text on multiple lines, like heredoc:
var xml =
Here
is
some
multiline
text!
console.log(xml.toXMLString())
console.log(xml.toString()) // just gets the content