You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Chris Hembrow <ch...@pixelseventy2.net> on 2006/01/17 00:46:04 UTC

not a valid XML character

Hi

I have a web service which reads messages from an external source. I
am getting the following error message:
java.lang.IllegalArgumentException: The char '0x1' after 'Dear
customer, your balance is now ' is not a valid XML character.

This is fair enough, it isn't valid, but I can't find anyway to encode
it. And shouldn't the serializer encode this itself? How can I handle
this error, without having to trawl through the messages and remove
invalid characters myself.

Thanks