X-ray absorption near-edge structure (XANES) measurements have been performed on nitrogen-doped diamond films with three different dopant concentrations and iron-layer-stabilized carbon nanotube (CNT) structures with various diameters at the C Kabsorption edge using the sample drain current mode. The C K-edge XANES spectra of these N-doped diamond films resemble that of the undoped diamond regardless of the dopant concentration, which suggest that the overall bonding configuration of the C atom is unaltered. N dopants are found to reduce the intensities of both the sp2 - and sp3 -bond-derived resonance features in the XANES spectra. On the other hand, the C K-edge XANES spectra of CNTs indicate that the intensities of the π* and σ* bands and the interlayer-state features vary with the diameter of the CNT. This phenomenon may be caused by the Fe-layer-catalysed bending of the graphite sheet and the interaction between C and Fe atoms.