>
Server:XML Parser failed at linenumber 1, lineposition 293, reason is: Illegal xml character.>
My guess is that the XML string being passed around in your C routine is where the problem is. I'm no expert at reading C, but I noticed your routine has some calls to subroutines that receive parameters. I think one of those parameters is where the problem is. If you can capture the XML string at the point of this error and locate line 1 position 293, you'll probably figure out the problem.