From: Mayrgundter, P. <pma...@do...> - 2004-08-12 16:22:03
|
Here's my fix: // Allow only valid XML characters. See: // http://www.w3.org/TR/2004/REC-xml-20040204/#NT-Char if ((this.configuration.xmlOut || this.configuration.xHTML) && !((c >=3D 0x20 && c <=3D0xD7FF) // Check the common-case = first. || c =3D=3D 0x9 || c =3D=3D 0xA || c =3D=3D 0xD // Then = white-space. || (c >=3D 0xE000 && c <=3D0xFFFD) // Then high-range = unicode. || (c >=3D 0x10000 && c <=3D0x10FFFF))) { return; = = =20 } Not sure where best to put this. I've got it as the first statement in = Lexer.addCharToLexer(int) currently. |