Re: String comparison
Input ==== <pages><first-page>10635<first-page><last-page>10637<last-page></pages>
I played with this for a bit and couldn't come up with anything significantly better than your code, other that putting it in a loop or recursion to generalize it over any length of number. You don't say whether you want a 2.0 or 1.0 solution, but I couldn't see anything obvious in 2.0 that would make it significantly easier.
Michael Kay Saxonica
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format