added methods to xml resource obj.