PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
class thingy{
function tagOpen($parser, $element) { // call when open
}
function tagData($parser, $data) { //call for data
}
function tagClose() { //call when close
}
function letsParse{
$parser = xml_parser_create();
xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, false);
xml_set_element_handler($parser, "tagOpen", "tagClose");
xml_set_character_data_handler($parser, "tagData");
xml_parse($parser, $xmlString);
xml_parser_free($parser);
}
}