See the answer to "Why does my XML output for column data contain trailing garbage?", it is the same problem.