Xion doesnt get killed, she "dissapears".
Axel and Roxas team up to "'"""kill""" Xion for Xemnas, but they dont, they fake a fight, and Xion makes her getaway somehow during it..... evcerything thinks she did, but she didnt, and Namine erased Axel's and Roxas's memory of her to keep her safe...