How to handle invalid XML character# Java - 爪哇娇娃
t*i
1 楼
I ran into the following exception. I can't see '^@' in the text which I tried
to convert into a xml string. And I tried to do str = str.replaceAll('^@',
''), but it didn't help.
Do you know a way to handle this problem? Is there an ideal way that we can
handle all invalid xml characters?
I'm using xercesImpl.jar and xml-apis.jar. And I'm using xml 1.0, encoding
UTF-8.
Thanks!
java.io.IOException: The character '^@' is an invalid XML character
java.io.IOException: The character '^@' is an invali
to convert into a xml string. And I tried to do str = str.replaceAll('^@',
''), but it didn't help.
Do you know a way to handle this problem? Is there an ideal way that we can
handle all invalid xml characters?
I'm using xercesImpl.jar and xml-apis.jar. And I'm using xml 1.0, encoding
UTF-8.
Thanks!
java.io.IOException: The character '^@' is an invalid XML character
java.io.IOException: The character '^@' is an invali