Hello there.
Today I have question about putting <!CDATA[]]> section in message body tag.
I have to send XML through jabber server (ejabberd) and I found that
using CDATA envelope over that data decrease CPU load much (from 35 to
8% on stress tests).
The problem is that creating tag message like this:
Tag *m = new Tag( "message" );
m->addAttribute( "xmlns", "jabber:client" );
m->addAttribute( "to", client );
m->addAttribute( "type", "chat" );
m->addAttribute( "from", component );
Tag *x = new Tag( m, "body", "");
x->addCData("<![CDATA["+ message+ "]]>")
whole message is "fancy escaping" from "<>" chars making CDATA section
useless.
Is there any other way to avoid escaping then comment whole escape()
body function?
--
Adrian Brański
--
gloox-dev mailing list
to unsubscribe:
send a message with subject 'unsubscribe gloox-dev' to minimalist@xxxxxxxxxx