It uses the awesome pure-JS XML parser sax behind the scenes to build up an easily-traversable object hierarchy. Behold: You can use it in your Node.js app easilynfarina posted this. I am trying to setup a simple node.js proxy to pass off a post to a web service (CSW in this isntance). Im posting XML in a request body, and specifying text/xml. - - The service requires these. I am trying to setup a simple node.js proxy to pass off a post to a web service (CSW in this isntance). Im posting XML in a request body, and specifying text/xml. - - The service requires these. Then, parse as XML. var parser new xml2js.Parser(options.xmlParseOptions) parser.
parseString(req.body, function(err, xml) .« Node.js: HTTP Verb Node.js: express 4.X ». I want to run some of the code on a server, running in Node.js.There are of course ways to walk over XML structures, but not jQuery. I thought then I should post this question publicly and ask for advice from readers of this blog. i am trying to submit a xml request to a web service via Node.js using http.request. Here is my code.