XPS involves irradiating the film with X-rays and measuring the kinetic energy and number of electrons that escape from the top few nanometers of the material. This provides detailed information about the elemental composition and chemical states of the elements within the thin film, making it invaluable for surface analysis.