Hi, we're receiving xml from a supplier encoded in ISO-8859-1, but some tags body are encoded with UTF-8, but they are surrounded with CDATA, so that strange encodings, like 0x1c character shouldn't be a problem to the parser, as said here:
http://www.w3schools.com/xmL/xml_cdata.asp We've built a parser with xmlbean last stable version, but the parser complain about this 0x1c character, see attachment near: ... "denominaciones de origen espa" ... Fri Aug 21 16:14:39 CEST 2009:class com.siap.DPKWebServices.Util.OTA_literal_HttpPost.queryHttp caught an exception: 29047814 org.apache.xmlbeans.XmlException e.toString():org.apache.xmlbeans.XmlException: error: Illegal XML character: 0x1c org.apache.xmlbeans.impl.piccolo.io.IllegalCharException: Illegal XML character: 0x1c at org.apache.xmlbeans.impl.piccolo.xml.XMLReaderReader.read(XMLReaderReader.java:169) at org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.yy_refill(PiccoloLexer.java:3474) at org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.yynextChar(PiccoloLexer.java:3721) at org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.parseCdataSection(PiccoloLexer.java:2671) at org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.yylex(PiccoloLexer.java:4850) at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.yylex(Piccolo.java:1290) at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.yyparse(Piccolo.java:1400) at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:714) at org.apache.xmlbeans.impl.store.Locale $SaxLoader.load(Locale.java:3439) at org.apache.xmlbeans.impl.store.Locale.parse(Locale.java:706) at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:690) at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:677) at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:208) at com.siap.TransHotel.GetAvailAccomDocument $Factory.parse(Unknown Source) at com.siap.DPKWebServices.Util.TransHotelUtil.validateRS(TransHotelUti Is there a way to work-around this prolem? Many thanks Best regards Bartolomeo -- Bartolomeo Nicolotti SIAP s.r.l. www.siapcn.it v.S.Albano 13 12049 Trinità (CN) Italy ph:+39 0172 652553 centralino: +39 0172 652511 fax: +39 0172 652519
zipX7EsfHJYHO.zip
Description: Zip archive
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

