Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
XPath evaluator against a SAX XML stream
tree: 7a1ac8c026

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
README.md
blammo.xml
index.js
package.json
run.js
run_sonar.sh
sonar-project.properties

README.md

SaXPath

Simple XPath evaluator which runs against a SAX stream. Build Status

Supported XPath construct as of writing are:

  • '/'-axis (child)
  • '//'-axis (self-or-descendant)
  • node name tests, including namespaces
  • predicate test (@ = "")

Inner workings

A state machine is built which the SAX-nodes are tested against. If a node matches, the state machine progresses.

For self-or-descendant-nodes, the state machine is forked and earch fork (including the parent) is tested against the SAX-nodes. This ensures all nodes are matched. See test/saxpath.js and test/inception.xml for an example.

Something went wrong with that request. Please try again.