invalid XML characters

When parsing String to XML, I get org.xml.sax.SAXParseException, with the message: An invalid XML character (Unicode: 0xb) was found in the element content of the document.What are invalid XML characters? How do I avoid this Exception?Thanks.
[263 byte] By [Ereza] at [2007-10-2 20:54:06]
# 1

Here is what the XML Recommendation says are valid characters for XML:Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]Invalid characters are anything else. And it should be obvious that to avoid that exception you should not attempt to parse files that contain any invalid characters.

DrClapa at 2007-7-13 23:38:32 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Does the following line does it okay?String str = getSomething();str = str.replace("#x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]", "something");Thanks.
Ereza at 2007-7-13 23:38:32 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...