I am using the following framework to build my xmls
https://www.npmjs.com/package/xmlbuilder
When I do the following
.ele('ATTACHMENTS','')
.ele('ATTACHMENT', attachmentXML)
I have another attachmentXML which looks like this
attachmentXML = builder.create('ATTACHMENT','','',{headless:true})
.ele('FILECONTENT',escape(content)).up()
<ATTACHMENTS>
<ATTACHMENT>
<FILECONTENT>PK%03%04%
The xml inside my main xml is wrapped inside of <.; instead of < etc. How do I fix this?