You are here

function customfilter_xml_read in Custom filter 5

1 call to customfilter_xml_read()
customfilter_import_form_submit in ./customfilter.module

File

./customfilter.module, line 1118

Code

function customfilter_xml_read(&$xml) {
  global $_customfilter_globals;
  $cg =& $_customfilter_globals;
  $cg->elements = array();
  $cg->sets = array();
  $cg->filters = array();
  $cg->set = array();
  $cg->filter = array();
  $cg->parents = array();
  $parser = drupal_xml_parser_create($xml);
  xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, true);
  xml_set_element_handler($parser, '_customfilter_xml_element_start', '_customfilter_xml_element_end');
  xml_set_character_data_handler($parser, '_customfilter_xml_element_cdata');
  xml_parse($parser, $xml, TRUE);
  xml_parser_free($parser);
}