Ambidentate coordination in hydrogen bonded dimethyl sulfoxide, (CH3)2SO...H3O+, and in dichlorobis(dimethyl sulfoxide) palladium(II) and platinum(II) solid solvates, by vibrational and sulfur K-edge X-ray absorption spectroscopy.