Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 16 lines (12 sloc) 0.617 kb
6101e44 @StevenLooman Initial commit
authored
1 SaXPath
2 =======
5a807f1 @StevenLooman README file
authored
3 Simple XPath evaluator which runs against a SAX stream.
4
5 Supported XPath construct as of writing are:
6 - '/'-axis (child)
7 - '//'-axis (self-or-descendant)
8 - node name tests
9 - predicate test (@<attribute_name> = "<literal>")
10
11 Inner workings
12 --------------
13 A state machine is built which the SAX-nodes are tested against. If a node matches, the state machine progresses.
14
15 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.