I am sending xml serialized object to the client from server using TCP socket. I am having some problem while converting byte array to xml string. I dont know if I am not using correct decoder but when the byte array is recieved in the client end, the xml string is prefixed by '?'. Thus first line of my xml string is becoming something like ?<?xml version="1.0" encoding="utf-8"?> which I cannot deserialize as it is no more a valid xml.
I tried both UTF-8 and Ascii encoding.
Any input will be highly appreciated.
thanks,
Bibek Dawadi