Surface chemistry of topographically patterned grooved samples with ridges of 150 nm width, adsorbed with self-assembled monolayers (SAMs) of alkanethiols on gold, have been characterized by near edge X-ray absorption fine structure (NEXAFS) spectroscopy. Analysis reveals that NEXAFS may discriminate between different chemistries adsorbed to the tops, sidewalls and grooves of the patterns.