0 votes
in Xpath Interview Questions by

How To Define Relationship Among Nodes?

1 Answer

0 votes
by

There are following types of nodes in XPath. These nodes are related to each other to form a tree like structure.

These nodes are:

  1. Parents
  2. Children
  3. Siblings
  4. Ancestors
  5. Descendents

For example:

<book>  

  <title>Parallel Algorithm</title>  

  <author>Rashmi Sharma</author>  

  <year>2008</year>  

  <price>150.00</price>  

</book>

Related questions

0 votes
asked Jan 17 in Oracle by kamalkhandelwal29
0 votes
asked Jul 26, 2021 in Xpath Interview Questions by SakshiSharma
...