Accessing node properties

getNodeType() : String

Returns the node type ("Document", "Element", "Text", "Comment" or "Attr").

getOwnerDocument() : Document

Returns the document object in which this node resides.

getParentNode() : Node

Returns this node's parent node or null if this node is a document or if this node is not currently part of a node hierarchy.