Home :: International :: Manuals :: Howto :: FAQ :: Man Pages :: Email Login

 
 

 

domxml_open_mem

(PHP 4 >= 4.2.1)

domxml_open_mem -- Crée un objet DOM pour un document XML

Description

object domxml_open_mem ( string str)

domxml_open_mem() analyse le document XML contenu dans la chaîne str et retourne un objet de classe "Dom document", avec les propriétés listées ci-dessus. La fonction domxml_open_file() ou domxml_new_doc() doit être appelée avant tout autre appel de fonction.

Exemple 1. Ouvrir un document XML à partir d'une chaîne

<?php
include("exemple.inc");

if(!
$dom = domxml_open_mem($xmlstr)) {
  echo
"Erreur lors de l'analyse du document\n";
  exit;
}

$root = $dom->document_element();
?>

Voir aussi domxml_open_file() et domxml_new_doc().

 
 
 
 
Google
  Web Linuxinfor   
 

Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account

Document on this page is part of "Manuel PHP". See Index Page for more info about Authorship and Copyright.

1999-2009 Linuxinfor.com. No rights reserved.