A thioester compound of Formula (XXV) is described:or a pharmaceutically acceptable salt thereof, wherein X, Y, Z, R<;sub>;1<;/sub>;-R<;sub>;14<;/sub>;are defined herein. The compounds are useful in medicine, for example for use in the treatment of a disorder mediated by inhibition of histone deacetylase.