The scattering of excited electrons in XANES regime is very sensitive. Changing of charge distribution leads to changing of the chemical environment of the absorbed atom. And the absorption edge will shift in the XANES regime because the core-level energies are changed. Every molecule have their distinct charge distributions, and this is how one is able to figure out their structure and other spatial information based on XANES. However, there are a lot of physical effects evolved in the near-edge region, which may cause some problems when trying to extract specific information out of it.