X-ray spectra from highly ionized dense plasmas produced by ultrashort laser pulses