Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

saxStream.close(); gets error #59

ghost opened this Issue Jan 21, 2012 · 4 comments


None yet
4 participants

ghost commented Jan 21, 2012


gets error:

TypeError: Object # has no method 'close'

SAXParser.prototype =
{ end: function () { end(this) }
, write: write
, resume: function () { this.error = null; return this }
, close: function () { return this.write(null) }

punund commented Jan 14, 2013


wampleek commented Feb 8, 2013



elidoran commented May 3, 2016

I thought I had this same problem. Then, I figured it out:

Look at the README and we'll see if we want the parser we use sax.parser() to create it (which is using sax.SAXParser).

So, that's why this close() is there. It's not on the SAXStream instance created by `sax.createStream(), it's on a SAXParser.

Note: the parser is also inside a SAXStream as _parser and is shown being used in the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment