PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

DomElement->get_attribute()> <DomDocumentType->system_id()
Last updated: Fri, 04 Jul 2008

view this page in

DomElement->get_attribute_node()

(No version information available, might be only in CVS)

DomElement->get_attribute_node() — Devuelve el nodo del atributo dado

Descripción

DomElement
DomAttribute get_attribute_node ( string $nombre )

Devuelve el nodo del atributo dado en el elemento actual.

Lista de parámetros

nombre

El nombre del atributo buscado. Este parámetro es sensible a mayúsculas/minúsculas.

Valores retornados

Devuelve el nodo del atributo como un objeto DomAttribute o FALSE si no se encuentra un atributo con el nombre dado.

Ejemplos

Example #1 Obtener un nodo de atributo

<?php

include("ejemplo.inc");

if (!
$dom domxml_open_mem($cadena_xml)) {
    echo 
"Ocurri&oacute; un error al interpretar el documento\n";
    exit;
}

$raiz $dom->document_element();
if (
$atributo $raiz->get_attribute_node('language')) {
    echo 
'El idioma es: ' $atributo->value() . "\n";
}

?>

Migración a PHP 5

Use Material que falta.



add a note add a note User Contributed Notes
DomElement->get_attribute_node()
There are no user contributed notes for this page.

DomElement->get_attribute()> <DomDocumentType->system_id()
Last updated: Fri, 04 Jul 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites