[jdom-interest] JDOM Parsing - Iterating Through Elements
Named the Same
timebomb at west.net
Tue Dec 11 12:04:55 PST 2001
I was a little confused but that turned out to be the ticket.
> From: "Alex Rosen" <arosen at silverstream.com>
> Date: Tue, 11 Dec 2001 14:24:47 -0500
> To: "'Hunter Hillegas'" <timebomb at west.net>, "'JDOM-Interest mailing list'"
> <jdom-interest at jdom.org>
> Subject: RE: [jdom-interest] JDOM Parsing - Iterating Through Elements Named
> the Same
> Did you look at the JDOM JavaDoc? e.g. the Element.getChildren() methods?
>> -----Original Message-----
>> From: jdom-interest-admin at jdom.org
>> [mailto:jdom-interest-admin at jdom.org]On Behalf Of Hunter Hillegas
>> Sent: Monday, December 10, 2001 2:40 PM
>> To: JDOM-Interest mailing list
>> Subject: [jdom-interest] JDOM Parsing - Iterating Through
>> Elements Named
>> the Same
>> I have an XML file like this:
>> <service id="0"><stuff></stuff></service>
>> <service id="1"><stuff></stuff></service>
>> <service id="9"><stuff></stuff></service>
>> There can be an arbitrary number of <service> elements, but I
>> always want
>> the last one.
>> Is there a way to iterate through elements that have the same
>> name to get to
>> the end?
>> What is the best way to do this?
>> To control your jdom-interest membership:
> uraddr at yourhost.com
> To control your jdom-interest membership:
More information about the jdom-interest