function update_status_xml_parser::parse in Update Status 5.2
Parse an array of XML data files.
File
- ./
update_status.module, line 1687
Class
- update_status_xml_parser
- XML Parser object to read Drupal's project info files This uses PHP4's lame XML parsing, but it works. Mostly.
Code
function parse($data) {
foreach ($data as $datum) {
$parser = xml_parser_create();
xml_set_object($parser, $this);
xml_set_element_handler($parser, 'start', 'end');
xml_set_character_data_handler($parser, "data");
xml_parse($parser, $datum);
xml_parser_free($parser);
}
return $this->projects;
}