We used linear combination analysis (LCA) to analyze the XANES spectra during corrosion by identifying the relative concentrations of metallic Ni and Ni 2+ . XANES is sensitive to the local environment including the concentration, oxidation state, and the coordination environment of elements. The spectra can be used to quantitatively identify the chemical configurations present in the sample.