Tried your code, and, of course, the first file I tried to parse didn't work - it had a comment before the main (root) section of the XML code.
So, it's probably necessary to add a while to skip comments!
John
Sponsored By: