Xavier was selected for UEFA Euro 2000 and became one of the key figures in the competition, not only due to playing some of his best football but also due to a distinctly bleached-blonde hairstyle with a matching beard. In the semi-final against France, he went from close to hero, as France goalkeeper Fabien Barthez blocked what looked a sure goal, to a villain, when he deflected a shot by Sylvain Wiltord near the post in the dying seconds of golden goal extra time with his hand. Zinedine Zidane scored the penalty and put France in the final. Xavier was initially given a nine-month ban from football for his vociferous protests against referee Günter Benkö's decision to award the penalty, but it was eventually reduced to six months. In the 2002 World Cup, he was part of the squad but played only as a substitute in the final group stage match against South Korea in his final of 20 international appearances.