Element element = XMLHelper.find(root, "/results/contacts/buddies/buddy");
FetionStore store = this.context.getFetionStore();
if(element!=null && element.getAttributeValue("user-id")!=null) {
Buddy buddy = store.getBuddyByUserId(Integer.parseInt(element.getAttributeValue("user-id")));
if(buddy!=null)
store.deleteBuddy(buddy);
}
Element contacts = XMLHelper.find(root, "/results/contacts");
if(contacts!=null && contacts.getAttributeValue("version")!=null){
int version = Integer.parseInt(contacts.getAttributeValue("version"));