{"repo":"Leonidas-from-XIV/node-xml2js","free":true,"listed":false,"github":"https://github.com/Leonidas-from-XIV/node-xml2js","clone":"git clone https://github.com/Leonidas-from-XIV/node-xml2js.git","description":"XML to JavaScript object converter.","language":"CoffeeScript","stars":4967,"topics":["coffeescript","parsing","xml-parser","xml","xml2json","xml2js","javascript","nodejs","node-js","node"],"license":"MIT","category":"dev-tools","readme_excerpt":"node-xml2js =========== Ever had the urge to parse XML? And wanted to access the data in some sane, easy way? Don't want to compile a C parser, for whatever reason? Then xml2js is what you're looking for! Description =========== Simple XML to JavaScript object converter. It supports bi-directional conversion. Uses sax-js and xmlbuilder-js. Note: If you're looking for a full DOM parser, you probably want JSDom. Installation ============ Simplest way to install xml2js is to use npm, just npm install xml2js which will download xml2js and all dependencies. xml2js is also available via Bower, just bower install xml2js which will download xml2js and all dependencies. Usage ===== No extensive tutorials required because you are a smart developer! The task of parsing XML should be an easy one, so let's make it so! Here's some examples. Shoot-and-forget usage ---------------------- You want to parse XML as simple and easy as possible? It's dangerous to go alone, take this: Can't get easier than this, right? This works starting with xml2js 0.2.3. With CoffeeScript it looks like this: If you need some special options, fear not, xml2js supports a number of options (see below), you can specify these as second argument: Simple as pie usage ------------------- That's right, if you have been using xml-simple or a home-grown wrapper, this was added in 0.1.11 just for you: Look ma, no event listeners! You can also use xml2js from CoffeeScript, further reducing the clutter: But what happens if y","default_branch":null,"files":null,"tree":[],"storefront":"/r/Leonidas-from-XIV","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Leonidas-from-XIV/node-xml2js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}