[JDEV] Is it possible to get the roster from Foreign IM's ?

Kerem HADIMLI waster at iname.com
Fri Sep 29 10:44:57 CDT 2000


This is XML-escaping, and is standart in XML. You should always escape chars
'"', "'", '<', '>', and '&'.

Here's a table of escaped chars. Also, always escape those chars, otherwise
you may send bad-formatted XML.

    & -> &amp;
    < -> &lt;
    > -> &gt;
    " -> &quot;
    ' -> &apos;

thanks,
Kerem HADIMLI

Ram wrote:
> 
> hello again!
> i have a serious doubt. we have developed a chat client in JSP and
> java..it's working perfect and doing all the necessary things that jabba is
> doing...but the only problem is the whenever  we  try to chat from any
> transport or any client(jsp) is the message contains any special characters
> ...like " ' ","&"..it's giving the message as &apos...for example if we try
> to give message to a JSP client  like" i'm fine" the jsp client will get a
> message like
> i &apos fine...this is really weird...i have no clue what's going on...is it
> a problem with java...or jabber  server...can u tell me how to overcome the
> problem..if u've faced one that is :-)!
> cheers
> RAm

-- 
If it happens once, it's a bug.
If it happens twice, it's a feature.
If it happens more than twice, it's a design philosophy.




More information about the JDev mailing list