1.

How To Define Relationship Among Nodes?

Answer»

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&GT;
<TITLE>Parallel Algorithm</title>
<author>Rashmi Sharma</author>
<year>2008</year>
<price>150.00</price>
</book>

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

These nodes are:

For example:

<book>
<title>Parallel Algorithm</title>
<author>Rashmi Sharma</author>
<year>2008</year>
<price>150.00</price>
</book>



Discussion

No Comment Found