Title: Remove User from Roster Group

Kayo, folks...
   Trying to figure out the syntax involved in removing a user from a roster group.

   Presently, I send the following packet to set the user's groups, what is the syntax to
remove, say the "school" group?

<iq type="set" id="uniquevalue">
        <query xmlns="jabber:iq:roster">
                <item jid="user@server" name="Some User">
                        <group>friends</group>
                        <group>school</group>
                </item>
        </query>
</iq>


        Probably a more comprehensive question would be, do I need to send ALL roster item
info EACH TIME I want to change a single attribute. Do I need to send jid, name, ask, subscribe,
and all groups every time I want to change the rosteritem? Is there a way to simply signify
that only x attribute needs to be changed, or are attributes ONLY changed when they are included
in the body of the roster request. Meaning: if there is group info, only change that, if there
is name info, only change that, etc?


Matt Diez




Reply via email to