A comparison of the solid-state structures of halogen azides XN3 (X=Cl, Br, I).