Homework on XPath
Do the following and turn in hard-copy of your answers at the start of class.
- Look over this XML file
- View the source of the XML, and paste it into the XML box at this XPath evalutor.
- For each of the following, think of appropriate XPath to find what is desired. Test out your XPath using the simulator and write down/type your XPath answer to turn-in.
- All the 'title' elements
- All the 'about' attributes
- The title of all elements where that element had at least 10 votes
- The description of all elements where a title was 'Web 2.0 at Prague'
- Turn-in (hardcopy):
- Correct XPath for each of the above
- Output of the XPath evaluator for #3 above (circle the matched elements if you can't see it in the printout)