Help identifying/using some weird pin headers
They are pretty bog standard surface mount 2mm pitch female header. You are correct that they are suitable for use with xBee's which use 2mm male header.

They are designed to be soldered onto the surface of a PCB to pads as pictured below. As such the legs are intentionally bent out in the way they are



Unless you need 2mm header for something, ditch them and get some standard 0.1" though-hole header.