Is this the only place it is valid on result output().  I think it is, but quite a few of the changes in the code generator gather xml information in other situations.