We present a table-top setup for x-ray absorption spectroscopy (XAS) based on high harmonic generation (HHG) in noble gases. Using sub-millijoule pump pulses at a central wavelength of 1550 nm, broadband HHG in the range of 70–350 eV was demonstrated. The HHG coherence lengths of several millimeters were achieved by reaching the nonadiabatic regime of harmonic generation. Near edge x-ray absorption fine structure spectroscopy experiments on the boron K edge of a boron foil and a hexagonal boron nitride (hBN) 2D material demonstrate the capabilities of the setup. Femtosecond pulse duration makes pump–probe XAS experiments with corresponding time resolution possible.