DomNode->node_type
(no version information, might be only in CVS)
DomNode->node_type --
Restituisce il tipo di nodo
Descrizione
int
DomNode->node_type ( void )
La funzione restituisce il tipo di nodo. L'elenco di tutti i tipi possibili
sono elencati in una tabella nell'introduzione.
Esempio 1.
<?php include 'example.inc'; $dom = domxml_open_mem($xmlstr); $chapter = $dom->document_element(); // Let's see the elements contained in chapter foreach($chapter->child_nodes() as $node) { if ($node->node_type() == XML_ELEMENT_NODE) { echo $node->node_name() . "\n"; } } ?>
|
Il precedente esempio visualizzerĂ :
|