There are following types of nodes in XPath. These nodes are related to each other to form a tree like structure.
These nodes are:
- Parents
- Children
- Siblings
- Ancestors
- Descendents
For example:
<book>
<title>Parallel Algorithm</title>
<author>Rashmi Sharma</author>
<year>2008</year>
<price>150.00</price>
</book>