classes/xml/XmlParser.php
public function onEndElement($parser, $element)
    {
        $this->parserLevel--;
        if ($this->parserLevel > 0) {
            return;

        }
        if ($element != \strtoupper($this->getIndex()->getElement())) {
            throw new ReadDataIndexException(
                "Unexpected closing of element '$element'."
            );

        }
        $this->parserPosition = \xml_get_current_byte_index($parser);
    }
public function onEndElement($parser, $element)
    {
        $this->parserLevel--;
        if ($this->parserLevel > 0) {
            return;

        }
        if ($element != \strtoupper($this->getIndex()->getElement())) {
            throw new ReadDataIndexException(
                "Unexpected closing of element '$element'."
            );

        }
        $this->parserPosition = \xml_get_current_byte_index($parser);
    }
public function onEndElement ( $ parser , $ element ) { $ this -> parserLevel -- ; if ( $ this -> parserLevel > 0 ) { return ; } if ( $ element != \ strtoupper ( $ this -> getIndex ( ) -> getElement ( ) ) ) { throw new ReadDataIndexException ( "Unexpected closing of element '$element'." ) ; } $ this -> parserPosition = \ xml_get_current_byte_index ( $ parser ) ; }
Handler for an element end event

This method is internally used by getData().

@param resource $parser  XML Parser
@param string   $element Element name

@return void
@throws ReadDataIndexException
@see XmlParser::getData()
@see xml_set_element_handler()
Handler for an element end event