/**
* Closing an XML element
* Note: This is a protected function though has to be exposed externally as a callback
*
* @param object $parser Parser object
* @param string $name Name of the element closing
*
* @return void
*
* @since 1.7.0
*/
protected function _endElement($parser, $name)
{
array_pop($this->stack);
if ($name === 'CATEGORY' && $this->pop_parent) {
$this->pop_parent = 0;
array_pop($this->parent);
}
}