Beispiel #1
0
function xml_parsestring($phraseur, $data)
{
    $phraseur->contenu[$phraseur->depth] = '';
    if (!xml_parse($phraseur->sax, $data, true)) {
        coordonnees_erreur($phraseur, xml_error_string(xml_get_error_code($phraseur->sax)) . "<br />\n" . (!$phraseur->depth ? '' : '(' . _T('erreur_balise_non_fermee') . " <tt>" . $phraseur->ouvrant[$phraseur->depth] . "</tt> " . _T('ligne') . " " . $phraseur->reperes[$phraseur->depth] . ") <br />\n"));
    }
}
Beispiel #2
0
 function defaultElement($phraseur, $data)
 {
     if (!preg_match('/^<!--/', $data) and preg_match_all('/&([^;]*)?/', $data, $r, PREG_SET_ORDER)) {
         foreach ($r as $m) {
             list($t, $e) = $m;
             if (!isset($this->dtc->entites[$e])) {
                 coordonnees_erreur($this, " <b>{$e}</b> " . _T('zxml_inconnu_entite') . ' ');
             }
         }
     }
     if (isset($this->process['default']) and $f = $this->process['default']) {
         $f($this, $data);
     }
 }