Sampling and chemical analysis of structural elements