We unmarshal stuff from web services and HTTP byte[] arrays all the time.

Just set up your unmarshaller, build a reader for the byte array, and build an InputSource out of it. Once you've got an input source, you can unmarshal.

Beware charset encoding, by the way; those are byte[] arrays, and not char[] arrays, so you're going to need to make sure you knew what the charset encoding you were sent that byte array with was, or you're going to get buggered charsets on foreign characters.

On 10 Aug 2005, at 18:51, Green, Jason M. wrote:
Hey all,
I am getting an xml document from a webservice that returns it as a byte[]. Does the unmarshal function support this? The javadoc seemed unclear to me. If it is allowed, how would I set that up?


-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to