We obtain x-ray absorption near-edge structures (XANES) by solving the equation of motion for the two-particle Green's function for the electron-hole pair, the Bethe-Salpeter equation (BSE), within the all-electron full-potential linearized augmented plane wave method (FPLAPW). The excited states are calculated for the Li K-edge in the insulating solids LiF, Li(2)O and Li(2)S, and absorption spectra are compared with independent particle results using the random phase approximation (RPA), as well as supercell calculations using the core-hole approximation within density functional theory (DFT). The binding energies of strongly bound excitations are determined in the materials, and core-exciton wavefunctions are demonstrated for LiF.