Post-CCSD(T) ab initio thermochemistry of halogen oxides and related hydrides XOX, XOOX, HOX, XOn, and HXOn (X = F, Cl), and evaluation of DFT methods for these systems.