Chemistry: The Molecular Science (5th Edition)

The element X has only one electron in its outermost shell. It will loose the electron and form $X^{+}$ ion, which combines with $Cl^{-}$ ion to form XCl.