Unmarshal xml elements to a slice.