Error about invalid XML characters on Java

Unicode character 0x0 represents NULL meaning that the data you’re pulling contains a NULL somewhere (which is not allowed in XML and hence your error).

Make sure that you find out what causes the NULL in the first place.

Also, how are you interacting with the WebService? If you’re using Axis, make sure that the WSDL has some encoding specified for data in and out.

Leave a Comment