[jdom-interest] Invalid XML character in CDATA

Jon Baer jonbaer at digitalanywhere.com
Sat Aug 25 02:36:08 PDT 2001

You need to include the encoding character set @ the top it sounds.

Try: <?xml version="1.0" encoding="ISO-8859-1"?>

BTW, I ran into the same problem and a special thanks to Elliotte's book "XML In A
Nutshell" quick reference from keeping me up late @ night.  A very good reference
book for that type of stuff.  Highly recommended.

- Jon

Mark Schmeets wrote:

> Hi all,
> I have a servlet which returns sql resultsets as XML. I am able to add the
> text from the query to a JDOM without any trouble, however when unwrapping
> it at the client, the SAXBuilder complains about an "Invalid XML character
> in CDATA". Specifically the character is ascii 192 -- I believe it is one of
> the chars that MS Word uses as a "smart quote".
> Is there any way to send, and receive these characters ( what about
> international characters ) through XML?
> Thanks,
> Mark
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com

More information about the jdom-interest mailing list