stack level too deep when parsing xml

Sounds like you have something, maybe a variable, that references itself causing an infinite recursion? Maybe it gets defined the first time around, so it's not recursive until the second time? Just a guess.

Chris