'XML GENERATE' should be used with 'WITH ENCODING' | CAST Appmarq