Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed bug in parseFile

  • Loading branch information...
commit 2e2764eb98b7479d82f14052c5874d98721cc366 1 parent 639fb65
Robert Righter authored
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(){
Please sign in to comment.
Something went wrong with that request. Please try again.