/**
 *
 * @author adamhayes
 */
public class XMLMessage {
    private int phoneNum;
    private int candidateID;
    public XMLMessage(){
        phoneNum = -1;
        candidateID = -1;
    }
    public XMLMessage(int number, int id){
        phoneNum = number;
        candidateID = id;
    }
    public void setNum(int number){
        phoneNum = number;
    }
    public void setID(int id){
        candidateID = id;
    }
    public int getNum(){
        return phoneNum;
    }
    public int getID(){
        return candidateID;
    }
}

/**
 *
 * @author adamhayes
 */
public class XMLMessage {
    private String phoneNum;
    private String candidateID;
    public XMLMessage(){
        phoneNum = null;
        candidateID = null;
    }
    public XMLMessage(String number, String id){
        phoneNum = number;
        candidateID = id;
    }
    public void setNum(String number){
        phoneNum = number;
    }
    public void setID(String id){
        candidateID = id;
    }
    public String getNum(){
        return phoneNum;
    }
    public String getID(){
        return candidateID;
    }
}

Update XMLMessage.java