Skip to content
Browse files

.

  • Loading branch information...
1 parent 6ab6a0c commit 7364e2f05e0afd5a14e255e121fb7c94afb8b13b @StevenLooman committed Aug 14, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 run.js
View
6 run.js
@@ -4,12 +4,12 @@ var fs = require('fs');
var sax = require('sax');
var xps = require('./lib');
-var filename = 'test/test.xml';
+var filename = 'test/bookstore.xml';
function main() {
var saxParser = sax.createStream(true);
- var streamer = new xps.SaXPath(saxParser, '/bookstore/book');
-// var streamer = new xps.SaXPath(saxParser, '/bookstore/book[@category="COOKING"]');
+// var streamer = new xps.SaXPath(saxParser, '/bookstore/book');
+ var streamer = new xps.SaXPath(saxParser, '/bookstore/book[@category="COOKING"]');
var fileStream = fs.createReadStream(filename);
fileStream.pipe(saxParser);

0 comments on commit 7364e2f

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