Hi,
I am using following code to create xml nodes.
xw = new XMLWriter; xw.startElement(function() {return 'element';}); xw.writeAttribute('id', idData[0]); xw.writeElement(zx, zy);
After creating few nodes, the node server is giving me following error:
Error: Bad Parameter
at Error (native)
at strval (C:\Node Projects\file_upload_sid\node_modules\xml-writer\lib\xml-
writer.js:19:14)
at Object.startElement (C:\Node Projects\file_upload_sid\node_modules\xml-wr
iter\lib\xml-writer.js:126:16)
at Object.writeElement (C:\Node Projects\file_upload_sid\node_modules\xml-wr
iter\lib\xml-writer.js:115:21)
at C:\Node Projects\file_upload_sid\app.js:51:9
at Layer.handle [as handle_request] (C:\Node Projects\file_upload_sid\node_m
odules\express\lib\router\layer.js:95:5)
at next (C:\Node Projects\file_upload_sid\node_modules\express\lib\router\ro
ute.js:137:13)
at Route.dispatch (C:\Node Projects\file_upload_sid\node_modules\express\lib
\router\route.js:112:3)
at Layer.handle [as handle_request] (C:\Node Projects\file_upload_sid\node_m
odules\express\lib\router\layer.js:95:5)
at C:\Node Projects\file_upload_sid\node_modules\express\lib\router\index.js
:281:22
Post this error, it continues and creates remaining nodes.
Kindly, let me know why I am facing this issue.
Thanks - Siddharth