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

 
 

 

domxml_open_mem

(PHP 4 >= 4.2.1)

domxml_open_mem -- Crea un oggetto DOM da un documento XML

Descrizione

object domxml_open_mem ( string str)

La funzione analizza il documento XML contenuto in str e restituisce un oggetto della classe "Dom document", avente le proprietà elencate. Queste funzioni, domxml_open_file() e domxml_new_doc(), devono essere richiamate prima di ogni altra funzione.

Esempio 1. Apertura di un documento XML da una stringa

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

if (!
$dom = domxml_open_mem($xmlstr)) {
  echo
"Error while parsing the document\n";
  exit;
}

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

Vedere anche domxml_open_file() e domxml_new_doc().

 
 
 
 
Google
  Web Linuxinfor   
 

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

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

1999-2009 Linuxinfor.com. No rights reserved.