Hello,
I've narrowed down the code to this (ignore the colourization):
var theXML:XML = 
    <xml>
        word
    </xml>;
for each (var i:XML in theXML.*) {
    trace(i);
}
For some reason, this prints out "word" over and over indefinitely. Any thoughts as to why? I'm a bit out of practice and have a feeling it's something obvious, but I'm stumped.
Thanks, Cameron