convert xml to json using sax parser
Last updated 2 years ago by parimal-padture .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install sax-xml2json 
SYNC missed versions from official npm registry.


A sax-style parser for converting XML and HTML to JSON.

Designed with node in mind, but should work fine in the browser or other CommonJS implementations.

What This Is

  • A very simple tool to convert XML file to JSON object.


var convert = require("sax-xml2json");
convert.toJson("./standard.xml", function (error, result) {

Reporting Problems

It's best to write a failing test if you find an issue. I will always accept pull requests with failing tests if they demonstrate intended behavior, but it is very hard to figure out what issue you're describing without a test. Writing a test is also the best way for you yourself to figure out if you really understand the issue you think you have with sax-xml2json.

Current Tags

  • 1.0.3                                ...           latest (2 years ago)

3 Versions

  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (0)
Dependents (0)

Copyright 2014 - 2016 © |