Skip to content

Commit 2e2764e

Browse files
author
Robert Righter
committed
Fixed bug in parseFile
1 parent 639fb65 commit 2e2764e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/node-xml.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -736,12 +736,12 @@ SaxParser.DTD_E = 11;
736736
SaxParser.prototype.parseFile = function(filename) { //This function will only work in the node.js environment.
737737
var posix = require('posix');
738738
var that = this;
739-
posix.cat("sample.xml").addCallback(function (content) {
740-
that.parse(content);
739+
posix.cat(filename).addCallback(function (content) {
740+
that.parseString(content);
741741
});
742742
}
743743

744-
SaxParser.prototype.parse = function(strD) {
744+
SaxParser.prototype.parseString = function(strD) {
745745

746746
var that = this;
747747
setTimeout(function(){

0 commit comments

Comments
 (0)