We studied the changes in the electronic structure of Equation or symbol description not availableLiFePO4 induced by Ti-, Al-, and Cu-doping. The technique used in the study was Fe 2p and O Equation or symbol description not available1s X-ray absorption (XAS) spectroscopy. XAS spectra were analyzed using atomic multiplet and band structure calculations. Fe 2p XAS spectra show that the Fe ions in Equation or symbol description not availableLiFePO4 are in a divalent Equation or symbol description not availableFe2+ high-spin state, and that the Fe ions remain in this Equation or symbol description not availableFe2+ state in the Ti-, Al-, and Cu-doped materials. O Equation or symbol description not available1s XAS spectra present relatively weak transitions to mixed Equation or symbol description not availableO2p-Fe3d states at threshold (the transitions to Equation or symbol description not availableO2p-P3sp states appears at higher energies due to the larger hybridization). O Equation or symbol description not available1s XAS spectra of the doped materials show additional absorption intensity just below threshold. These features correspond to transitions to doped states in the bandgap of the Equation or symbol description not availableLiFePO4 compound.