Skip to content
Browse files


  • Loading branch information...
1 parent 9a0186d commit 5a807f1f856d68759bcf08e9cf5edfa779ee55e1 @StevenLooman committed Aug 19, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0
@@ -1,2 +1,15 @@
+Simple XPath evaluator which runs against a SAX stream.
+Supported XPath construct as of writing are:
+ - '/'-axis (child)
+ - '//'-axis (self-or-descendant)
+ - node name tests
+ - predicate test (@<attribute_name> = "<literal>")
+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.

0 comments on commit 5a807f1

Please sign in to comment.
Something went wrong with that request. Please try again.