I think providing the file name will be the best that I can do. The actual error is coming from nsxml, and apparently the parser's not kind enough to tell you which tag's not been closed, which I would assume is the cause of the problem.
That's OK, though, these queryfiles are simple enough so that once you
know which one's failing, finding the problem should be simple.