This work reported the investigation of optical spectra of Rh-like Xe9+ and Ru-like Xe10+ ions at a low-energy electron beam ion trap. The line from 4 d9 2D3/2–2D5/2 M1 transition of Xe9+ ions was remeasured, the wavelength of which was determined to be 598.365(5) nm, and the uncertainty was significantly improved. In the region of 200–700 nm, four spectral lines emitted from Xe10+ ions were directly observed for the first time. The relativistic many-body perturbation method was adopted for the investigation of fine structure in Xe10+ ions. The theoretical and experimental results were in good agreement within 2%, and the four observed lines of Xe10+ ions were identified.