DomElement->has_attribute
Checks to see if an attribute exists in the current node
&reftitle.description;
boolDomElement->has_attribute
stringname
This functions checks to see if an attribute named
name exists in the current node.
Testing the existence of an attribute
document_element();
$buffer = 'has_attribute('language')) {
$buffer .= 'lang="' . $root->get_attribute('language') . '"';
}
$buffer .= '>';
?>
]]>