Conformal invariance, the XXZ chain and the operator content of two-dimensional critical systems