[Standards] <[CDATA[ in XMPP

Justin Karneges justin-keyword-jabber.093179 at affinix.com
Tue Jul 31 01:28:45 UTC 2007


On Monday 30 July 2007 5:37 pm, Rachel Blackman wrote:
> If I send '<item> stpeter at jabber.org</item>' to the server in a
> roster add/remove request, it will almost certainly eat that
> whitespace at the beginning.

It most certainly must not do that.

> But now let's say I do '<item><![CDATA[ stpeter at jabber.org]]></item>'
> -- is that processed as ' stpeter at jabber.org' (with the raw space),
> thus requiring a CDATA block any time you want to refer to that JID?
> Or is the burden on the server to convert it to \20stpeter at jabber.org
> for the sake of compatibility, or what?

This:
  <item> stpeter at jabber.org</item>

and this:
  <item><![CDATA[ stpeter at jabber.org]]></item>

have identical meaning.  JID escaping does not come into play here whatsoever.

-Justin



More information about the Standards mailing list