     stack = []
     @parser = sax.parser(strict, options)
     
-    # opencdata, cdata, closecdata
-
     @parser.onerror = (e) ->
       # an error happened.
       return

        parent = stack[stack.length - 1]
        parent.children ?= []
        parent.children.push(result)
      # closed a tag. "name" is tag name
      return



  write: (text) ->
    @parser.write(text)
    
  on: (event, cb) ->
    @events.on event, cb
    

{EventEmitter} = require 'events'
sax = require 'sax'

module.exports = 
class Parser
