You could just URLEncode your string values as you add them to your xml. For example:
String xmlMessage = "Some XML Message with any character types"; element.addTextNode(java.net.URLEncoder.encode(xmlMessage)); I know that the syntax for adding a text node might not work as I have written it, but the encoding will. Also, in later versions of Java, the encode method has been deprecated and replaced with: encode(String text, String characterEncoding) so you would use: String xmlMessage = "Some XML Message with any character types"; element.addTextNode(java.net.URLEncoder.encode(xmlMessage), "UTF-8"); or something similar. I hope this helps. Pobzeb Armerding Vann's Inc. Software Engineer On Tue, 15 Nov 2005 10:50:46 -0600, Michael Rudolf wrote: | Hi, | i would like to know how i can find out which characters are | illegal for WS transmission. I only get messages like Unicode 0x11 | but i dunno which char the problem is. Thanks! Michael
