Electronic and crystal structures of LnFeAsO1−xHx (Ln = La, Sm) studied by x-ray absorption spectroscopy, x-ray emission spectroscopy, and x-ray diffraction (part I: carrier-doping dependence). (28th May 2021)