The charge compensation mechanisms in polycrystalline Pr1-xAxCoO3-d (A = Ca, Sr) here synthesized by the solid-state reaction method have been investigated by analyzing the Pr-L3 and Co-K X-ray absorption near-edge structure (XANES) with the aid of first-principles calculations. As a result, the valence state of Pr ions and Co ions in these materials accompanying oxygen vacancy were determined.