[JDEV] How to get roster of certain group?
Ru-Shan Cheng
raicy at wayi.com.tw
Tue Jul 29 00:49:48 CDT 2003
Hi all,
I want to do some changes to jabber server that can send certain group's roster to client only.
For example, My roster have 3 groups : A, B, C, then then I get the roster of A group when
I login in A resource.
Could somebody give me some suggestions about following solutions to the question?
1. Client send :
<iq id="limit_group_roster" type="get">
<query xmlns="jabber:iq:roster">
<limit group='AAAA'/>
</query>
</iq>
2. Predefined namespace in DTD:
<?xml version="1.0" ?>
<!ELEMENT limit (limit*)>
<!ATTLIST limit group cdata #IMPLIED >
Client send:
<iq id="limit_group_roster" type="get">
<query xmlns="jabber:iq:roster">
<limit xmlns='http://10.1.2.114/group.dtd' group='AAAA'/>
</query>
</iq>
Which one is better?
Any pointers and suggestion will be helpful!
More information about the JDev
mailing list