Although APXS and ChemCam will tell you which chemical elements are present, they don't tell you how precisely those atoms are arranged into the crystalline structures that make up the rock, and both this mineralogy and the chemical composition are ideally needed to assign a rock name.
BBC: Cosmic coincidence on the road to Glenelg