From f570ec153afe123597d305f499608a4d30dca6bd Mon Sep 17 00:00:00 2001 From: Mehdi Achour Date: Mon, 13 Jun 2005 08:57:53 +0000 Subject: [PATCH] WS git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@188262 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../DomElement-get-attribute-node.xml | 63 ++++++++-------- .../functions/DomElement-get-attribute.xml | 71 +++++++++---------- .../DomElement-get-elements-by-tagname.xml | 57 ++++++++------- .../functions/DomElement-has-attribute.xml | 55 +++++++------- .../functions/DomElement-remove-attribute.xml | 39 +++++----- .../DomElement-set-attribute-node.xml | 39 +++++----- .../functions/DomElement-set-attribute.xml | 65 +++++++++-------- .../domxml/functions/DomElement-tagname.xml | 57 ++++++++------- 8 files changed, 219 insertions(+), 227 deletions(-) diff --git a/reference/domxml/functions/DomElement-get-attribute-node.xml b/reference/domxml/functions/DomElement-get-attribute-node.xml index 3c1ba1d422..63ee4ad378 100644 --- a/reference/domxml/functions/DomElement-get-attribute-node.xml +++ b/reference/domxml/functions/DomElement-get-attribute-node.xml @@ -1,31 +1,30 @@ - - - - - DomElement->get_attribute_node - - Returns the node of the given attribute - - - - &reftitle.description; - - domattributeDomElement->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 - + + + + DomElement->get_attribute_node + + Returns the node of the given attribute + + + + &reftitle.description; + + domattributeDomElement->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 + get_attribute_node('language')) { ?> ]]> - - - - - + + + + + - - - - 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 - + + + + 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 + get_attribute('language'); // en ?> ]]> - - - - - See also domelement_set_attribute - - - + + + + + See also domelement_set_attribute + + + - - - - DomElement->get_elements_by_tagname - - Gets elements by tagname - - - - &reftitle.description; - - arrayDomElement->get_elements_by_tagname - stringname - - - This function returns an array with all the elements which has - name as his tagname. Every element of the - array is a DomElement. - - - - Getting a content - + + + + DomElement->get_elements_by_tagname + + Gets elements by tagname + + + + &reftitle.description; + + arrayDomElement->get_elements_by_tagname + stringname + + + This function returns an array with all the elements which has + name as his tagname. Every element of the + array is a DomElement. + + + + Getting a content + ]]> - - - - - + + + + + - - - - 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 - + + + + 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 + '; ?> ]]> - - - - - + + + + + - - - - DomElement->remove_attribute - - Removes attribute - - - - &reftitle.description; - - boolDomElement->remove_attribute - stringname - - - &warn.undocumented.func; - - - + + + + DomElement->remove_attribute + + Removes attribute + + + + &reftitle.description; + + boolDomElement->remove_attribute + stringname + + + &warn.undocumented.func; + + + - + - - - - DomElement->set_attribute - - Sets the value of an attribute - - - - &reftitle.description; - - domattributeDomElement->set_attribute - stringname - stringvalue - - - Sets an attribute with name name to the given - value. If the attribute does not exist, it will - be created. - - - - Setting an attribute - + + + + DomElement->set_attribute + + Sets the value of an attribute + + + + &reftitle.description; + + domattributeDomElement->set_attribute + stringname + stringvalue + + + Sets an attribute with name name to the given + value. If the attribute does not exist, it will + be created. + + + + Setting an attribute + append_child($node); $newnode->set_attribute("align", "left"); ?> ]]> - - - - - See also domelement_get_attribute. - - - + + + + + See also domelement_get_attribute. + + + - - - - DomElement->tagname - - Returns the name of the current element - - - - &reftitle.description; - - stringDomElement->tagname - - - - Returns the name of the current node. Calling this function is the same - as accessing the tagname property, or calling - DomElement->node_name of the current node. - - - - Getting the node name - + + + + DomElement->tagname + + Returns the name of the current element + + + + &reftitle.description; + + stringDomElement->tagname + + + + Returns the name of the current node. Calling this function is the same + as accessing the tagname property, or calling + DomElement->node_name of the current node. + + + + Getting the node name + node_name(); // chapter ?> ]]> - - - - - + + + + +