XML parser callback: Perform an action when a closing tag is encountered.
resource $parser: A reference to the XML parser calling the handler.
string $name: The name of the element for which this handler is called.
array $attributes: An associative array with the element's attributes (if any).
protected function elementEnd($parser, $name) {
switch ($name) {
case 'image':
case 'textinput':
case 'item':
case 'entry':
case 'info':
$this->element = '';
break;
case 'id':
case 'content':
if ($this->element == $name) {
$this->element = '';
}
}
}