Exercises

A Chinese takeaway menu is stored in the file chinese.xml.
  1. Write an XPath expression to find the cost of the first dish.
  2. Write an XPath expression to find the cost of any dish, given its name.
  3. Write a  web page for a browser (using DOM and JavaScript) to work out how much a meal consisting of two Spring Rolls and a portion of Sweet and Sour Pork will cost.
  4. Helpful resources