We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 639fb65 commit 2e2764eCopy full SHA for 2e2764e
lib/node-xml.js
@@ -736,12 +736,12 @@ SaxParser.DTD_E = 11;
736
SaxParser.prototype.parseFile = function(filename) { //This function will only work in the node.js environment.
737
var posix = require('posix');
738
var that = this;
739
- posix.cat("sample.xml").addCallback(function (content) {
740
- that.parse(content);
+ posix.cat(filename).addCallback(function (content) {
+ that.parseString(content);
741
});
742
}
743
744
-SaxParser.prototype.parse = function(strD) {
+SaxParser.prototype.parseString = function(strD) {
745
746
747
setTimeout(function(){
0 commit comments