A variant of XRF imaging that is based on the use of two x-ray lenses in a confocal configuration, enabling measurements of high spatial resolution in three directions, including depth (x, y, and z) in the micrometer range.