Ejemplo n.º 1
0
 public function endTag($parser, $name)
 {
     $this->_parseElementName($name, $nsPrefix, $nsUri, $tagName);
     if ($tagName == 'Description' && $nsPrefix == 'rdf') {
         //end of a document:
         $this->_counter++;
         if ($this->_counter <= $this->_rdf_parser->getFrom()) {
             return;
         }
         $this->_xml .= "\n  </doc>";
         if ($this->_counter >= $this->_rdf_parser->getFrom() + $this->_rdf_parser->getLimit()) {
             throw new OpenSKOS_Rdf_Parser_Helper_Exception($this->_counter . ' documents processed');
         }
         return;
     }
     if (substr($this->_xml, -3) == ']]>') {
         $this->_xml .= "</field>";
     }
 }