/** * XML end element handler * * This function is called whenever an ending element is reached * The element handler will be called if found, otherwise it must be HTML * * @param resource $parser the resource handler for the XML parser * @param string $name the name of the XML element parsed * * @see startElement() */ function endElement($parser, $name) { global $elementHandler, $processIfs, $processGedcoms, $processRepeats; global $processFootnote; if (($processFootnote || $name == "Footnote") && ($processIfs == 0 || $name == "if") && ($processGedcoms == 0 || $name == "Gedcom") && ($processRepeats == 0 || $name == "Facts" || $name == "RepeatTag" || $name == "List" || $name == "Relatives")) { if (isset($elementHandler[$name]['end'])) { if ($elementHandler[$name]['end'] != "") { call_user_func($elementHandler[$name]['end']); } } elseif (!isset($elementHandler[$name]['start'])) { HTMLEHandler($name); } } }
/** * XML end element handler * * This function is called whenever an ending element is reached * The element handler will be called if found, otherwise it must be HTML * * @param resource $parser the resource handler for the XML parser * @param string $name the name of the XML element parsed * @see startElement() */ function endElement($parser, $name) { global $elementHandler, $processIfs, $processGedcoms, $processRepeats; if (($processIfs == 0 || $name == "PGVRif") && ($processGedcoms == 0 || $name == "PGVRGedcom") && ($processRepeats == 0 || $name == "PGVRFacts" || $name == "PGVRRepeatTag" || $name == "PGVRList" || $name == "PGVRRelatives")) { if (isset($elementHandler[$name]["end"])) { if ($elementHandler[$name]["end"] != "") { call_user_func($elementHandler[$name]["end"]); } } else { if (!isset($elementHandler[$name]["start"])) { HTMLEHandler($name); } } } }