X-ray absorption near edge structure (XANES) and scanning photoelectron microscopy (SPEM) measurements have been employed to obtain information on the electronic structures of the GaN nanowires and thin film. The comparison of the XANES spectra revealed that the nanowires have a smaller (larger) N (Ga) K edge XANES intensity than that of the thin film, which suggests an increase (decrease) of the occupation of N 2p (Ga 4p) orbitals and an increase of the N (Ga) negative (positive) effective charge in the nanowires. The SPEM spectra showed that the Ga 3d band for the nanowires lies about 20.8 eV below the Fermi level and has a chemical shift of about -0.9 eV relative to that of the thin film.