>mainXML.item.length() which shows the same problem. Actually, It shows a worse problem... and infinite loop, cause length() keeps growing so the loop will never terminate. If you save the invariant to a local variable first, obviously it works better... but the XMLList still grows.
Mike