views:

20

answers:

0

I have a simple XML file, such as:

<shop>
    <row num="1">
        <shelf1>Fruit</shelf1>
        <shelf2>Milk</shelf2>
    </row>
    <row num="2">
        <shelf1>Pens</shelf1>
        <shelf2>Paper</shelf2>
    </row>
</shop>

And I'd like to put shelf1, shelf2, shelf3 and shelf4 into an array. Any ideas on where to start? I'm using JSP/DOM.