a sort of reverse-SAX XML parser
Last updated 4 years ago by permutator .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install xml-pulley 
SYNC missed versions from official npm registry.

xml-pulley npm Dependency Status Build Status

This is a simple parser for XML—actually just a relatively thin wrapper around sax-js. It's designed for and tested on node, but it should work on other CommonJS implementations, as well as browsers with the help of bundlers like Browserify.

The API is designed to work well with a variety of backends. This version uses sax-js, but it ought to be easy enough to make a version using, for instance, the built-in DOMParser in web browsers and drop it in with minimal changes to the dependent code.

It's called "xml-pulley" because you pull data from it, as opposed to SAX, which pushes data onto you, or DOM, which stores data for you. And also because I couldn't think of anything better to call it in the several seconds I gave myself to think of a name.

There's no proper documentation at the moment. Have a look at the 84 tests if you like; those were boring enough to write on their own. The wiki also has a simple example of how xml-pulley might be used.

Current Tags

  • 0.3.0                                ...           latest (4 years ago)

5 Versions

  • 0.3.0                                ...           4 years ago
  • 0.2.0                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
  • 0.0.0                                ...           5 years ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 5
Dependencies (1)
Dev Dependencies (4)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |