DomElement->get_attribute Returns the value of the given attribute &reftitle.description; stringDomElement->get_attribute stringname Returns the value of the attribute named name in the current node. The name parameter is case sensitive. Since PHP 4.3, if no attribute with given name is found, an empty string is returned. Getting the value of an attribute document_element(); echo $root->get_attribute('language'); // en ?> ]]> See also domelement_set_attribute