The best node module for XML parsing

Manoj picture Manoj · Feb 15, 2013 · Viewed 245.3k times · Source

As far as XML parsing is concerned, which is the best node module, that I can use for XML parsing?

Answer

mithunsatheesh picture mithunsatheesh · Feb 15, 2013

You can try xml2js. It's a simple XML to JavaScript object converter. It gets your XML converted to a JS object so that you can access its content with ease.

Here are some other options:

  1. libxmljs
  2. xml-stream
  3. xmldoc
  4. cheerio – implements a subset of core jQuery for XML (and HTML)

I have used xml2js and it has worked fine for me. The rest you might have to try out for yourself.