[JDEV] XML in messages body

Franci Penov francip at webmessenger.bg
Mon Dec 6 10:08:03 CST 1999


Hi,

I have a question. I am trying to send messages with XML inside of message
body. I have a simple client, which tokenises all '<', '>', etc. inside of
the message body. However, on the other side i got them untokenised.
Example:

Sent message:
<message to='user at jabber1'>
<body>&lt;some xml body&gt;</body>
</message>

Received message:
<message to='user at jabber1'>
<body><some xml body></body>
</message>

Now, as i saw in messages.dtd everything in message body should be treated
as CDATA. Doesn't this mean that Jabber should not untokenise message body?

Regards, Franci Penov
===================
WebMessenger Inc
francip at webmessenger.bg
===================
Do you like good jokes? :-))

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.jabber.org/jdev/attachments/19991206/53653543/attachment-0002.htm>


More information about the JDev mailing list