Lab 9: Using  for-return

In this folder you will find:

   - juicers.xml

Open juicers.xml and see how this XML document is organized.

Drag and drop juicers.xml into Oxygen XML.

In Oxygen, create XPath expressions to:

1. Output the name of every element in the document.


2. Output the name of every attribute in the document.


3. Output the name and cost of the first juicer. Repeat for the other juicers.


4. For the sequence generated in (1), what positions does 'juicer' occur at? Create an XPath
   expression to answer this question.


5. Compute the average for all the integers from one to one hundred.


6. List the names of all the juicers in the document, in reverse order.


7. The currency conversion rate between US dollars and Canadian dollars is 1:1.2 (1 US dollar = 1.2 Canadian
   dollars). Print the name of each juicer followed by its cost in Canadian dollars.