The mineralizing heterogeneity effect in XRF sampling was investigated with theory of mathematical statistics. A method called "Optimum measuring Net" has been developed. The theoretical estimation and experimental results show that the mineralizing heterogeneity effect can be cut down to the minimum with the method.