Lab 10: Using  if-then-else

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. Is the cost of the fourth juicer (Juiceman Jr) less than the cost of the fifth juicer (Omega Juicer)?
   Create an XPath expression to answer this question.


2. Did your XPath expression in (1) return false? Clearly that's incorrect because 82.00 is less than
   234.00. What went wrong? Here's what happened: a dictionary (lexical) comparison was done, not a numeric
   comparison. To ensure that a numberic comparison is done, wrap one of the operands in the number() function.
   Repeat (1) but this time be sure that the output is true.


3. Write an XPath expression that starts at the top of the document tree, navigates to the first juicer,
   and then selects all of its following juicers (juicer #2, juicer #3, etc).


4. Does the fourth juicer (Juiceman Jr) have a cost that is less than *all* the following juicers? Write an XPath
   expression that answers this question? First, read: Is the cost of the 4th juicer less than the following juicers.pptx


5. Select each juicer that has a cost less than all of its following juicers.