 
   resume:-> @parser.resume()
 
-  bound: require 'koding-bound'
-
   parse:(xmlStr)->
     {parser} = this
-    @parser.parseString xmlStr
-
-
+    @parser.parseString xmlStr
{EventEmitter} = require 'microemitter'

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


  createSaxParser =(handlers)->
    {SaxParser} = require 'node-xml'
    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
