DomElement->get_attribute_node Returns the node of the given attribute Description objectDomElement->get_attribute_node stringname Returns the node of the attribute named name in the current element. The name parameter is case sensitive. If no attribute with given name is found, &false; is returned. Getting an attribute node document_element(); if ($attribute = $root->get_attribute_node('language')) { echo 'Language is: ' . $attribute->value() . "\n"; } ?> ]]>