Max Bowsher <[EMAIL PROTECTED]> wrote on 08/07/2007 09:55:10 PM:

> pmkwan wrote:
> > Thanks for the prompt reply.  Since I'm using java, and my 
> database is MySQL,
> > do you know what I should use to output this character (Unicode: 0x1e)
> > correctly within the CDATA section?
> > 
> > If there's no easy solution, does that mean I have to filter out these 
funky
> > characters before outputting them in the CDATA section?
> 
> The unicode character 0x1e is forbidden outright from appearing in an
> XML document. There is no way to represent it within XML.

True for XML 1.0 but not for XML 1.1 [1] (though you must use a character 
reference to include it).

> (Personally, this seems like a rather unnecessary limitation to me, but
> that's how part of how XML is defined.)
> 
> If transport of arbitrary data is your goal, perhaps something other
> than XML would fit your design criteria better.
> 
> Max.

[1] http://www.w3.org/TR/2006/REC-xml11-20060816/#charsets

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to