The biggest difference is that both instruments are made from a different material, and therefore make very different sounds.
Xylophones have wooden bars that produce a mellow tone, whereas the bars on the glockenspiel are metal giving off a more bell-like tone. There is a clue to this difference in their names; ‘glocken’ means ‘bells’ in German, while ‘xylon’ is ‘wood’ in Greek.