XML Tutorial Answer2-10


10. Which of the following predicate selects the first student element that is the child of the class element?
A.      /class/student/[1]
B.      /class/student[last()]
C.      /class/student[first()-]
D.      None of the above
Answer
Explanation
Ans. ‘A’ is correct
/class/student/[1] predicate selects the first student element that is the child of the class element.


CLICK HERE FOR BACK