Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Now endDocument is still called even when using pause & resumes.

  • Loading branch information...
commit cbfd608d0281ea52931ce0b61867323890c32b48 1 parent 6f62071
Alex Latchford authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/node-xml.js
View
5 lib/node-xml.js
@@ -839,10 +839,15 @@ SaxParser.prototype.pause = function() {
SaxParser.prototype.resume = function() {
//reset the state
this.m_parser.resume();
+ this.m_interrupted = false;
+
//now start up the parse loop
var that = this;
setTimeout(function(){
that._parseLoop();
+ if(!that.m_bErr && !that.m_interrupted) {
+ that._fireEvent(SaxParser.DOC_E);
+ }
}, 0);
}
Please sign in to comment.
Something went wrong with that request. Please try again.