URGENT HELP NEEDED XML Output

Do you have encoding turned on for the recordToDocument call?