XPath provide us seven kinds of nodes.These are: 1.element 2.text 3.processing-instruction 4.comment 5.namespace 6.attribute 7.document node(root node). In XML documents nodes are structured as tree.And the root of the tree is called as document node(root node) in an XML document. I have given example which show you how to manage nodes in XML.
<?xml version="1.0" encoding="ISO-8859-1"?> <bookstore> <book> <title lang="en">Parallel Algorithm</title> <author>Rashmi Sharma</author> <year>2008</year> <price>150.00</price> </book> </bookstore> Now, I explain you above example interms of node. <bookstore> (document node or root node) <author>Rashmi Sharma</author> (element node) lang="en" (attribute node)