DomNode->get_content
(no version information, might be only in CVS)
DomNode->get_content --
Obtiene el contenido del nodo
Descripción
string
DomNode->get_content ( void )
Esta función devuelve el contenido del nodo mismo.
Ejemplo 1. Obtener el contenido
<?php if (!$dom = domxml_open_mem($codena_xml)) { echo "Ocurrió un error al analizar el documento\n"; exit; }
$raiz = $dom->document_element();
$matriz_nodos = $raiz->get_elements_by_tagname("element");
for ($i = 0; $i<count($matriz_nodos); $i++) { $nodo = $matriz_nodos[$i]; echo "El elemento[$i] is: " . $nodo->get_content(); }
?>
|
|