Classification of entanglement and quantum phase transition in XX Model