[jdom-interest] how to find a node with maxest attribute in x
ml file use xpath?
Godbey, David
david.j.godbey at saic.com
Thu Nov 14 05:53:58 PST 2002
XPath will certainly help. Check out jaxen.org.
-----Original Message-----
From: John L. Webber - Jentro AG [mailto:John.Webber at jentro.com]
Sent: Thursday, November 14, 2002 2:38 AM
To: glliu
Cc: jdom-interest at jdom.org
Subject: Re: [jdom-interest] how to find a node with maxest attribute in
xml file use xpath?
This is really a Java problem, not a JDOM problem. There are a number of
approaches that could work. You basically need to go through all the AAA
elements and parse the values of the id attributes. org.jdom.Attribute
has a utility method, getIntValue() that might help.
John
glliu wrote:
> Hi,
> I use jdom to reading and writing to XML files.and I need help on
> the following problem. Any suggestions?
>
> Thanks in Advance.
> glliu
>
>
> xml files:
>
> <A>
> <AAA id="001">
> <AAA id="004">
> <AAA id="023">
> <AAA id="098">
> <AAA id="002">
> <A>
>
> how can I find the node with maxest id attribute?here is <AAA id="098">.
--
---------------------------------------------------------
Jentro AG
John L. Webber, Software Development
---------------------------------------------------------
Peter-Henlein-Strasse 28, 85540 Haar/Munich, Germany
Tel. +49 89 462 385 0 mailto:John.Webber at jentro.com
Fax +49 89 462 385 29 http://www.jentro.com
---------------------------------------------------------
{ smart networks - connect your world }
---------------------------------------------------------
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com
More information about the jdom-interest
mailing list