50 public function parse()
52 if(!strlen($this->
getXml()))
57 $hits =
new SimpleXMLElement($this->
getXml());
58 foreach($hits->children() as $user)
60 foreach($user->children() as $item)
66 foreach($item->children() as $field)
71 $name = (string)$field[
'name'];
72 $content = (string)$field;
77 $this->
getResult()->addItem((
int)$item[
'id'], $fields);