I am using NodeJs library called xmlbuilder-js for building dynamic XML output but I'm having a little difficulty removing the header of the XML Output. Following is my code sample
var xml = builder.create('root')
.ele('parent')
.ele('content')
.dat('something').up()
.up()
.end()
console.log(xml)
which produces following output
<?xml version="1.0"?>
<root>
<parent>
<content><![CDATA[something]]></content>
</parent><
</root>
Here I wanna remove the first line of the output which is called header that is
<?xml version="1.0"?>
and replace it with another line like<vast version="2.5"
> but I'm confused how shall I do that. Can somebody please tell me with an example how to do so?