[jdom-interest] how to find a node with maxest attribute in xml file use xpath?

Roman Rytov rrytov at entopia.com
Thu Nov 14 04:49:55 PST 2002


What about sortingn this part by id and getting the first elmenet?

	-----Original Message-----
	From: glliu [mailto:itslgl at hotmail.com] 
	Sent: Thursday, November 14, 2002 7:45 AM
	To: jdom-interest at jdom.org
	Subject: [jdom-interest] how to find a node with maxest
attribute in xml file use xpath?
	
	
	
	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">.
	

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20021114/df509fe9/attachment.htm


More information about the jdom-interest mailing list