DOMElement::setAttribute

(PHP 5, PHP 7) Adds new attribute public DOMAttr DOMElement::setAttribute ( string $name, string $value ) Sets an attribute with name name to the given value. If the attribute does not exist, it will be created. Parameters: name The name of the attribute. value The value of the attribute. Returns: The new DOMAt

DOMElement::removeAttributeNode

(PHP 5, PHP 7) Removes attribute public bool DOMElement::removeAttributeNode ( DOMAttr $oldnode ) Removes attribute oldnode from the element. Parameters: oldnode The attribute node. Returns: Returns TRUE on success or FALSE on failure. Exception: Raised if the node is readonly. Raised if oldnode is not an attri

DOMElement::removeAttribute

(PHP 5, PHP 7) Removes attribute public bool DOMElement::removeAttribute ( string $name ) Removes attribute named name from the element. Parameters: name The name of the attribute. Returns: Returns TRUE on success or FALSE on failure. Exception: Raised if the node is readonly.

DOMElement::getAttributeNodeNS

(PHP 5, PHP 7) Returns attribute node public DOMAttr DOMElement::getAttributeNodeNS ( string $namespaceURI, string $localName ) Returns the attribute node in namespace namespaceURI with local name localName for the current node. Parameters: namespaceURI The namespace URI. localName The local name. Returns: Th

DOMElement::getElementsByTagNameNS

(PHP 5, PHP 7) Get elements by namespaceURI and localName public DOMNodeList DOMElement::getElementsByTagNameNS ( string $namespaceURI, string $localName ) This function fetch all the descendant elements with a given localName and namespaceURI. Parameters: namespaceURI The namespace URI. localName The local name. Use * to return all ele

DOMElement::getElementsByTagName

(PHP 5, PHP 7) Gets elements by tagname public DOMNodeList DOMElement::getElementsByTagName ( string $name ) This function returns a new instance of the class DOMNodeList of all descendant elements with a given tag name, in the order in which they are encountered in a preorder traversal of this element tree. Parameters: name The tag name. Use * to return all elements with

DOMElement::getAttributeNode

(PHP 5, PHP 7) Returns attribute node public DOMAttr DOMElement::getAttributeNode ( string $name ) Returns the attribute node with name name for the current element. Parameters: name The name of the attribute. Returns: The attribute node. See also: DOMElement::

DOMElement::hasAttributeNS

(PHP 5, PHP 7) Checks to see if attribute exists public bool DOMElement::hasAttributeNS ( string $namespaceURI, string $localName ) Indicates whether attribute in namespace namespaceURI named localName exists as a member of the element. Parameters: namespaceURI The namespace URI. localName The local name. Returns:

DOMElement::hasAttribute

(PHP 5, PHP 7) Checks to see if attribute exists public bool DOMElement::hasAttribute ( string $name ) Indicates whether attribute named name exists as a member of the element. Parameters: name The attribute name. Returns: Returns TRUE on success or FALSE on failure. See also:

DOMElement::getAttributeNS

(PHP 5, PHP 7) Returns value of attribute public string DOMElement::getAttributeNS ( string $namespaceURI, string $localName ) Gets the value of the attribute in namespace namespaceURI with local name localName for the current node. Parameters: namespaceURI The namespace URI. localName The local name. Returns: