There are some other useful functions in the DOM library. We are not going to discuss them in depth, however they are included in this section for a one line overview.
DomNode->setAttribute()
: Helps to set the attribute of any nodeDomNode->hasChildNodes()
: Returns true if a DOM node has a child nodeDomNode->replaceChild()
: Replaces any child node with another oneDomNode->cloneNode()
: Creates a deep copy of the current code