Browse files

Fixed bug in parseFile

  • Loading branch information...
1 parent 639fb65 commit 2e2764eb98b7479d82f14052c5874d98721cc366 Robert Righter committed Jan 11, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/node-xml.js
View
6 lib/node-xml.js
@@ -736,12 +736,12 @@ SaxParser.DTD_E = 11;
SaxParser.prototype.parseFile = function(filename) { //This function will only work in the node.js environment.
var posix = require('posix');
var that = this;
- posix.cat("sample.xml").addCallback(function (content) {
- that.parse(content);
+ posix.cat(filename).addCallback(function (content) {
+ that.parseString(content);
});
}
-SaxParser.prototype.parse = function(strD) {
+SaxParser.prototype.parseString = function(strD) {
var that = this;
setTimeout(function(){

0 comments on commit 2e2764e

Please sign in to comment.