powered by Jive Software

Problem with removing contact from group

Hi guys,

I am encounting a problem removing a contact from a group I created called : V&V . This problem is mainly when someone uses a ejabbered server but I was able to get around it by using the code extract below:


Iterator objIterator = objEntry.getGroups();

while(objIterator.hasNext())

{

RosterGroup objGroup = (RosterGroup)objIterator.next();

objGroup.removeEntry(objEntry);

}

((CMessenger) (mobjMessenger)).getJabberRoster().removeEntry(objEntry);


This is what is already there but crashes giving an ill formed xml error.

//THIS SHOULD DO THE SAME AS ABOVE,

((CMessenger) (mobjMessenger)).getJabberRoster().removeEntry(objEntry);