Well, you have a java.util.List of org.jdom.Element objects.
Iterate over the list (using java.util.Iterator, if you like),
and then do whatever you wish with the org.jdom.Element objects.
Maybe:
List results = ...
Iterator resultIter = results.iterator();
Element eachElem = null;
while ( resultIter.hasNext() )
{
eachElem = (Element) resultIter.next();
System.err.println( eachElem.getText() );
}
-bob
On Tue, 31 Jul 2001, Shalil Majithia wrote:
> Hi all,
>
> I tried out JDOMDemo sample in beta 3 with the following inputs:
>
> java JDOMDemo /addresses.xml /addressdatabase/person/name/*
>
> Part of the output is herebelow.
>
> [Element: <firstname/>]
> [Element: <surname/>]
> [Element: <firstname/>]
> [Element: <surname/>]
> [Element: <firstname/>]
> [Element: <surname/>]
> [Element: <firstname/>]
> [Element: <surname/>]
> [Element: <firstname/>]
> [Element: <surname/>]
>
> How can I get the data contained within these nodes?
>
> thanks for all help
> cheers
> shall
>
>
> _______________________________________________
> Jaxen-interest mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jaxen-interest
>
_______________________________________________
Jaxen-interest mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jaxen-interest