High quality x-ray absorption spectroscopy measurements with long energy range at high pressure using diamond anvil cell.