High-Resolution Measurements of the K-Shell Spectral Lines of Hydrogenlike and Heliumlike Xenon