You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Elliotte Rusty Harold <el...@metalab.unc.edu> on 2003/04/27 13:30:33 UTC

Re: Invalid characters issue

At 5:53 AM +0300 4/27/03, Dima Gutzeit wrote:

Is there a way to make the parser just skip/ignore invalid characters 
and continuie with parsing ?!


No. The file is malformed. The processor will give up and stop 
parsing it. This is one of the fundamental rules of XML. Whatever 
process is producing the malformed data should be fixed. By the time 
it gets to the parser, it's too late.
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|           Processing XML with Java (Addison-Wesley, 2002)          |
|              http://www.cafeconleche.org/books/xmljava             |
| http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA  |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.cafeconleche.org/    |
+----------------------------------+---------------------------------+

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org