Re: Unicode characters that are not legal XML characters;

2008-12-23 Thread lucas song
I have wirte a class to deal with this problem. public class XmlCharFilter { public static String doFilter(String in) { StringBuffer out = new StringBuffer(); // Used to hold the output. char current; // Used to reference the current character. if (in == null || ("".equals(in)))

Re: Unicode characters that are not legal XML characters

2008-12-23 Thread Bryan Talbot
I believe you can use the following unicode characters in XML documents: U+0009, U+000A, U+000D, [U+0020-U+D7FF], [U+E000-U+FFFD], and [U+1-U+10] One of your documents contains a U0022 character which is an invalid space character for XML. http://www.unicode.org/unicode/reports/tr

Re: Unicode characters that are not legal XML characters;

2008-12-23 Thread Jarek Zgoda
Wiadomość napisana w dniu 2008-12-23, o godz. 14:46, przez rohit arora: When i give post command to build my Index on my (databases / XML) file it gives me an error which is like . com.ctc.wstx.exc.WstxUnexpectedCharException: Illegal character ((CTRL-CHAR, code 22)) at [row,col {unknown-