Resteasy / transmitting XmlBeans in general

2009-08-21 Thread Matthew Young
looking into resteasy from jboss to replace my DWR Ajax calls. when using DWR I wrote a converter (those not familiar with DWR you need a converter for different java types) to handle XmlBean objects when marshalled as JSON. XmlBean objects are interfaces which hides the underlying

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

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