World Cup winning midfielder Xavi has confirmed his retirement from international football
Spain live updates
Spain saw off Netherlands in the Under-21 European Championships, thanks to goals from Alvaro Morata, Manchester City target Isco and a last-minute strike from Alvaro Vasquez.
The Spaniards will now face Norway in the semi-finals.
Sean St Ledger had hero status snatched from his grasp as the Republic of Ireland very nearly held Spain to a draw in New York.
Spain lead through substitute Roberto Soldado's 69th-minute strike when central defender St Ledger stabbed home what he thought was an equaliser with nine minutes remaining.
However, an offside flag against team-mate Simon Cox cut short his celebrations. With Juan Mata scoring a second late on for the World champions.
– Barcelona striker David Villa
I always try to think of the present. I will go to the Confederations Cup and try to play a good role there.
We'll need to analyse many things during the summer and then we'll see. Right now I'm not thinking about anything else than playing football.
I have a contract with Barca and I've always said that I'm very happy here.
Chelsea playmaker Juan Mata makes a video thanking his Twitter followers for their support.
Preliminary Spain squad for Confederations Cup:
Goalkeepers: Casillas (Real Madrid), Reina (Liverpool) y Valdés (Barcelona).
Defenders: Monreal (Arsenal), Jordi Alba (Barcelona), Albiol (Real Madrid), Piqué (Barcelona), Sergio Ramos (Real Madrid), Azpilicueta (Chelsea) y Arbeloa (Real Madrid).
Midfielders: Iniesta (Barcelona), Cazorla (Arsenal), Busquets (Barcelona), Xabi Alonso (Real Madrid), Xavi Hernández (Barcelona), Javi Martínez (Bayern de Múnich), Javi García (Manchester City) y Beñat (Betis).
Forwards: Mata (Chelsea), Silva (Manchester City), Cesc Fábregas (Barcelona), Pedro (Barcelona), Jesús Navas (Sevilla), Villa (Barcelona) y Fernando Torres (Chelsea), Soldado (Valencia).