selectNodes returns a java.util.List; I'm sure I don't need to tell you how to iterate over a List. Because the List isn't generic the only thing you'll need to do is cast the elements to Node; but you need to do that for selectSingleNode too.
Russ Russell
Ranch Hand
Joined: Jan 24, 2010
Posts: 72
posted
0
Thanks for the help so far.
I am VERY new to XML (and sort of new to Java).
It seems I am still only getting the first item. Does this look right?
I would like to print all the <item><description> elements in the entire document.
Thank you,
-Russ
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.