dnewcome/jath — pull request #8 by fiznool (2012-03-06 22:34:04+00:00)
Title: Updated Jath for most recent node.js

Just pulled down the head of Jath and noticed that `node jathnodetest.js` didn't work using node-0.7.6-pre. Granted, I am working from the head of the node repo, but I believe the fixes I have made to get it to work here will be backwards compatible down to node 0.6, perhaps earlier (I'm a bit of a node novice so not sure how to check).

Basically, I have altered two main things to get the node test working:

- Swapped out the `sys` library for `util` in both `jathnodetest.js` and `jath.js`
- Removed the deprecated `parseXmlFile()` method from `libxmljs` and updated it using node's built in `fs` library.

Seems to work pretty well on my machine, gets rid of the errors, anyway!