Lab 8: Using Sequences

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. Create a sequence consisting of the gear juicers followed by the centrifugal juicers.


2. Select the second juicer from the sequence created in (1).


3. Remove the second juicer from the sequence created in (1) and return the resulting sequence.


4. Create a sequence consisting of the names of the juicers. The sequence must be of atomic values, i.e.,
   not a sequence of element nodes.


5. Using the sequence created in (4), what position is 'Omega Juicer' at? Create an XPath expression to
   answer this question.


6. Repeat (4), but this time create a sequence of name nodes (not name atomic values).


7. Using the sequence created in (6), what position is the name node with value 'Omega Juicer' at? 
   Create an XPath expression to answer this question.


8. Create a sequence of all the odd integers from one to one hundred.


9. How many items does the sequence in (8) produce? Create an XPath expression to answer this question.


10. Repeat (4), but insert before the second name this name: 'Norwalk Juicer'.