 
   createSaxParser =(handlers)->
     {SaxParser} = require 'node-xml'
-    return new SaxParser (cb)=>
+    return new SaxParser (cb)->
       cb[ev] handler  for own ev, handler of handlers
 
   createErr =(message)->
     return new Error message  if 'string' is typeof message
     return message
+
+  bound: require 'koding-bound'
 
   warn:(message)->
     @emit 'warning', createErr message

{EventEmitter} = require 'microemitter'

module.exports = class KDSaxParser extends EventEmitter
  constructor:(options)->
    {@api, @prefix} = options  if options.api?
    @api        ?= options


  resume:-> @parser.resume()

  parse:(xmlStr)->
    {parser} = this
    @parser.parseString xmlStr