RE: Illegal XML character: 0x1c inside CDATA

2009-08-25 Thread Wing Yew Poon
different encoding just because you demarcate some block of characters inside a CDATA section. - Wing Yew -Original Message- From: Bartolomeo Nicolotti [mailto:bnicolo...@siapcn.it] Sent: Tuesday, August 25, 2009 2:15 AM To: user@xmlbeans.apache.org Subject: Re: Illegal XML character: 0

Re: Illegal XML character: 0x1c inside CDATA

2009-08-25 Thread Bartolomeo Nicolotti
Hi, I've seen that link already, but, as you can see from the previous attachment, the 0x1c character is in a [CDATA[...]] section and in the specification of xml there's written that: Within a CDATA section, only the CDEnd string is recognized as markup http://www.w3.org/TR/2008/REC-xml-2008112

Re: Illegal XML character: 0x1c inside CDATA

2009-08-25 Thread Jacob Danner
Ahh, just re-looked at your old post and clicked on the link and ended up at the following page which I think might explain some of your issue. http://www.w3schools.com/xmL/xml_encoding.asp On Mon, Aug 24, 2009 at 11:47 PM, Bartolomeo Nicolotti wrote: > Hi, > > if you open the attached file wi

Re: Illegal XML character: 0x1c inside CDATA

2009-08-24 Thread Bartolomeo Nicolotti
Hi, if you open the attached file with an editor that let you see the hex code of the files, for example ghex2 in linux, you'll see that before the string "denominaciones de origen espa" there's a 0x1c byte that's the one that causes the exception. Removing this byte there's a further failure d

Re: Illegal XML character: 0x1c inside CDATA

2009-08-24 Thread Jacob Danner
Can you properly parse the XMLObject when the value you are trying to parse comes from a file? Again, I do not think this error is caused by an entry in the CDATA of an element but rather in the content of the HTTP. When I recieved this error before I found the issue was in some data that I reciev

Re: Illegal XML character: 0x1c inside CDATA

2009-08-24 Thread Bartolomeo Nicolotti
Hi, we do the same, we use have the attached file in a string, having POSTed it with int org.apache.commons.httpclient.HttpClient.executeMethod(HttpMethod method) throws IOException, HttpException and then we do XMLObject.parse, as you can see also from the call stack: org.apache.xmlbeans.imp

Re: Illegal XML character: 0x1c inside CDATA

2009-08-21 Thread Jacob Danner
I've seen similar when working with content retrieved from URLs. What I found was the problem wasn't in the content of the xml, but in some additional data that was passed along prior to the xml payload I wanted. My workaround to this was to use some IO Stream APIs to read the content into a string

Illegal XML character: 0x1c inside CDATA

2009-08-21 Thread Bartolomeo Nicolotti
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