Updated XMLListAdapter to optimize remove functions.