The chemical reactions and pathways involving xylogalacturonan, a pectin characterized by a backbone of alpha-(1->4)-linked D-galacturonic acid residues substituted on C-3 with beta-D-xylopyranose residues.