[JDEV] XML in messages body

Thomas Charron tcharron at ductape.net
Mon Dec 6 12:05:21 CST 1999


Quoting Franci Penov <francip at webmessenger.bg>:
> 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?

  No, it shouldn't be.  Are you sure that's what's comming from the socket, and 
you're not viewing the untokenized content?

  Perhaps jserver is reassembling the packet, and is causing the issue..

--- 
Thomas Charron
<< Wanted: One decent sig >>
<< Preferably litle used  >>
<< and stored in garage.  ?>>




More information about the JDev mailing list