Yes, the XM5 and XM7 refer to the same rifle. Initially, the new U.S. Army rifle was designated the XM5. However, due to a naming conflict with a weapon produced by Colt Industries, the Army changed the designation of its new rifle from XM5 to XM7.