private function _end_document()
 {
     $this->_listener->end_document();
     $this->_state = self::STATE_DONE;
 }