I am trying to recreate the xml to json converted based on DOMParser. Is there a way to make it work for NodeJS
Asked
Active
Viewed 4,783 times
1
-
Have you checked out the already existing packages that do this sort of thing in npmjs? – blueren Dec 19 '17 at 06:36
-
I am looking for an equivalent of x2js at git. But none is close to it – Samdeesh Dec 19 '17 at 06:38
-
Unable to find equivalent of https://github.com/abdmob/x2js/ – Samdeesh Dec 19 '17 at 06:45
-
How about [this](https://www.npmjs.com/package/x2js) or [this](https://www.npmjs.com/package/node-x2js) – blueren Dec 19 '17 at 07:04
-
https://www.npmjs.com/package/x2js is fine thanks. But I found https://www.npmjs.com/package/xmldom which is exactly what Domparser does – Samdeesh Dec 19 '17 at 07:12
1 Answers
0
The exact polyfill for Domparser in node is xmldom package at https://www.npmjs.com/package/xmldom

Samdeesh
- 905
- 11
- 23