This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
William Brogden wrote:Why not iterate through the NodeList from high to low?
Try it for your self ,it still would be in incorrect order . Furthermore ,as I said ,I need to make to code work with every query , meaning
that there are queries where we'd need no reverse - hence there is no need to iterate through the NodeList from high to low - if you do that , the answer would be incorrect !!
I'd appreciate any suggestions . thanks
Author and all-around good cowpoke
Joined: Mar 22, 2000
If you want absolute control then work with the DOM directly using the standard library instead of XPath.