[Standards] <[CDATA[ in XMPP

Robin Redeker elmex at x-paste.de
Tue Jul 31 00:28:08 UTC 2007


On Mon, Jul 30, 2007 at 05:12:16PM -0700, Rachel Blackman wrote:
> Can I use <[CDATA[ in, say, roster additions or removals?  If I'm  
> using it there, how do I need to process the text on the server-side  
> for the JIDs?  If I send ' stpeter at jabber.org' as a CDATA element --  
> allowing the space in there -- how do I handle escaping it on the  
> server side?  Do I just store it as ' stpeter at jabber.org' in the  
> roster?  Do I need to re-escape it before sending it back?  Do I need  
> to determine that the JID requires escaping, and so send that roster  
> item as a <[CDATA[ block?  Does it show up as the same JID or  
> different than \20stpeter at jabber.org?  Etc.

' stpeter at jabber.org' is not (yet) a valid JID.
And you can already send such a JID to the server:

   <message to=" stpeter at jabber.org" ...

I would expect the server to give me an error.

On top of that is JID escaping in a completely different layer
than XML escaping.


R



More information about the Standards mailing list