Closed arunsraga closed 5 years ago
Comment text needs to be a string. e.g. { "#comment": "some text here" }
. So, in order to have an XML tree inside a comment, you need to convert it into a string first:
Edit: var resultObj = { "#comment": builder.create(obj).end() }
.
@oozcitak Thank You. It works fine.
I want to comment multi line i.e
I'm getting following Error. "node_modules\xmlbuilder\lib\XMLComment.js:15 throw new Error("Missing comment text");
I was Expecting Result as follows: