O K-edge and Co L-edge near-edge X-ray absorption fine structure has been used to examine the cathode of an intact solid-state lithium ion battery. The novel technique allowed for the simultaneous acquisition of partial electron yield and fluorescence yield data during the first charge cycle of a LiCoO(2)-based battery below the intercalation voltage. The chemical environments of oxygen and cobalt at the surface are shown to differ chemically from those in the bulk. The present design enables a wide variety of in situ spectroscopies, microscopies and scattering techniques.