DomElement->get_attribute_node() Returns the node of the given attribute &reftitle.description; DomElement DomAttributeget_attribute_node stringname Returns the node of the given attribute in the current element. &reftitle.parameters; name The name of the seeked attribute. This parameter is case sensitive. &reftitle.returnvalues; Returns the node of the attribute as a DomAttribute or &false; if no attribute with the given name is found. &reftitle.examples; Getting an attribute node document_element(); if ($attribute = $root->get_attribute_node('language')) { echo 'Language is: ' . $attribute->value() . "\n"; } ?> ]]> Migrating to PHP 5 Use . &reftitle.seealso;