(no version information, might be only in CVS)
DomElement->get_attribute_node --
Restituisce il nodo dell'attributo dato
Descrizione
domattribute
DomElement->get_attribute_node ( string name )
Restituisce il nodo dell'attributo indicato da name
nell'elemento corrente. Il parametro name distingue
tra minuscole e maiuscole.
Se non si trova alcun attributo con il nome dato, la funzione restituisce FALSE
Esempio 1. Ottenere un nodo attributo
<?php include("example.inc"); if (!$dom = domxml_open_mem($xmlstr)) { echo "Error while parsing the document\n"; exit; } $root = $dom->document_element(); if ($attribute = $root->get_attribute_node('language')) { echo 'Language is: ' . $attribute->value() . "\n"; } ?>
|
|