4. XPath

4.1 When might you use current() rather than '.' when selecting a node?

______________________________________________________________________________________ ______________________________________________________________________________________ ______________________________________________________________________________________ ______________________________________________________________________________________

xmlTree.jpg

4.2 Please write an XPath expression that returns the contents of all p elements that follow the one with ID="p13"

______________________________________________________________________________________ ______________________________________________________________________________________ ______________________________________________________________________________________ ______________________________________________________________________________________ ______________________________________________________________________________________ ______________________________________________________________________________________ ______________________________________________________________________________________

©Wiley Interscience