Closed baharalidurrani closed 1 year ago
I used https://github.com/michaelkourlas/node-js2xmlparser to achieve the desired results.
It's not clear to me what the input, output, and desired output are here and the example is too large. I'm closing this out, but feel free to reopen or open a new issue with a clear minimal test case, with clear input and output and expected output.
I'm trying to convert the following JSON to XML. But it can’t parse arrays correctly. Here's a current versus desired result: https://gist.github.com/baharalidurrani/6ae5951337488ae8659c04da144a67ad/revisions
If we look at the screenshot above we can clearly see that we lost some tags on line numbers 29,30 and 41,42.