function startElement($parser, $name, $attributes) { if ($name == 'languages') { // strip off the initial 'languages' $this->element_path = array(); } else { parent::startElement($this->parser, $name, $attributes); } }