The Node interface is the primary datatype for the entire Document Object Model. It represents a single node in the document tree. While all objects implementing the Node interface expose methods for dealing with children not all objects implementing the Node interface may have children. For example Text./text nodes may not have children and adding children to such nodes results in a DomException./Domexception being raised....ATTRIBUTE_NODE and nodes created with a DOM Level 1 method, such as Document...of Node interface returns the DOM node’s parent Element , or null...