Probably not, although it depends on what is in your byte array and what you mean by "changing".
XML is a text format. It is not meant to contain arbitrary bytes, and in fact it is specifically not allowed for XML documents to contain bytes in the range x'00' to x'1f' (with the exception of tab, line feed, and carriage return characters). So if your byte array contains bytes that don't map to printable characters, you will have to do something else to get it into an XML document. Encoding the bytes using Base64 is a popular method, for example.
You mean after encoding it, the value then written as string to xml would be equivalent to byte data?
The scenario related To websphere MQ ,the messageID generated by MQSeries for request message is to be written in xml so that later this message id can be retrived from xml and response message can be put...
In that case the requester will check the request message id and response message id to retrive the response message from queue.
To do a great right, do a little wrong - shakepeare. twisted little ad:
a bit of art, as a gift, that will fit in a stocking