The directed movement of xanthine into, out of or within a cell, or between cells, by means of some agent such as a transporter or pore. Xanthine (2,6-dihydroxypurine) is a purine formed in the metabolic breakdown of guanine, but is not present in nucleic acids.