'', 'INFO' => '', 'FOLDER' => '', 'TITLE' => '', 'BOOKMARK' => '<BOOKMARK>', 'DESC' => '<DESC>' ); $close_tags = array( 'XBEL' => '</XBEL>', 'INFO' => '</INFO>', 'FOLDER' => '</FOLDER>', 'TITLE' => '', 'BOOKMARK' => '', 'DESC' => '' ); function xbel_startElement($parser, $name, $attrs) { global $open_tags, $current_tag, $depth, $tb, $hs, $na, $txt1, $txt2; $current_tag = $name; $hs++; switch($name) { case 'XBEL': array_push($txt2, "\n
    \n"); break; case 'FOLDER': array_push($txt2, "\n"); if (end($depth) == 'XBEL') { array_push($txt2, $li); } break; case 'BOOKMARK': $tb['url'] = $attrs['HREF']; break; default: break; } array_push($depth, $name); } function xbel_endElement($parser, $name) { global $close_tags, $tb, $current_tag, $depth, $hs, $txt2; switch($name) { case 'XBEL': array_push($txt2, "\n
\n"); break; case 'FOLDER': array_push($txt2, ""); break; case 'BOOKMARK': xbel_return_page($tb); $tb = ''; break; default: break; } array_pop($depth); $hs--; } function xbel_characterData($parser, $data) { global $current_tag, $tb, $catID, $depth, $hs, $txt1, $txt2, $nb; switch($current_tag) { case 'BOOKMARK': $tb['bookmark'] .= $data; $current_tag = ''; break; case 'TITLE': $tpp = array_pop($depth); if (end($depth) == 'FOLDER') { array_push($txt2, "
  • $data
      "); $tpp2 = array_pop($depth); if (end($depth) == 'XBEL') { $li = sprintf("%s", $nb++, $data); array_push($txt1, $li); } array_push($depth, $tpp2); } else { $tb['title'] .= $data; $current_tag = ''; } array_push($depth, $tpp); break; case 'DESC': $tpp = array_pop($depth); if (end($depth) == 'BOOKMARK') { $tb['desc'] .= $data; $current_tag = ''; } array_push($depth, $tpp); break; case 'URL': $tb['url'] .= $data; $current_tag = ''; break; default: break; } } function xbel_return_page() { global $tb, $txt2; if ($tb['title']) { $tb['title'] = str_replace('##ak[ampersand]ak##', '&',$tb['title']); $ll = sprintf("
    • %s
      ",$tb['url'], $tb['title']); array_push($txt2, $ll); if ($tb['desc'] !=""){ $tb['desc'] = str_replace('##ak[ampersand]ak##','&',$tb['desc']); $ll1 = sprintf("
      %s
    • ", $tb['desc']); array_push($txt2, $ll1); }else{ $ll1 = sprintf(""); array_push($txt2, $ll1); } } // print "
    \n"; } ?> Mes marques pages

    Patientez jusqu’à la fin du chargement pour que ça prenne forme.

    Margré votre patience, le résultat n’est pas satisfaisants parce qu’il y a une rupture aux caractères accentués dans le nom des dossiers. Je dois encore y travailler.

    Mes marques pages

    Voici mes marque-pages, tels que je les ai enregistrés la dernière fois. Ceci me permet de les consulter en voyage, mais vous pouvez voir ce qui vous intéresse.

    J’exporte les marque-pages de Firefox 3 en format XBEL en utilisant l’extension SyncPlaces vers un fichier xbel.xml.

    La page est générée dynamiquement à partir de xbel.xml par un script php d’Amir Kamal qui est lui-même parti du script de Roberto Giungato.