Using Axes we can set relation of current node with another node. Example: ancestor : Use to get all ancestor (parent, grandparent etc) of current node. ancestor-or-self : Use to get all ancestors (parent, grandparent, etc.) of the current node and also the current node. attribute : Use to get all attributes of the current node. child : Use to get all children of the current node. descendant : Use to get all descendants (children, grandchildren, etc.) of the current node. namespace : Use to get all namespace nodes of the current node. preceding : Use to get everything in the document that is comes before the start tag of the current node. preceding-sibling : Use to get all siblings before the current node.
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in OneStopFAQs.com:-
There should not be any Spelling Mistakes.
There should not be any Gramatical Errors.
Answers must not contain any bad words.
Answers should not be the repeat of same answer, already approved.