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.
subject: Using XPath - Java returns the NodeList in document order - how can I fix it ?