The enantiomers of XYLNAc (2-N-acetylamino-1,2,4-trideoxy-1,4-iminoxylitol) are prepared from the enantiomers of glucuronolactone; the synthesis of the enantiomers of LYXNAc (2-N-acetylamino-1,2,4-trideoxy-1,4-iminolyxitol) from an L-arabinono-δ-lactone and a D-ribono-δ-lactone is reported. A comparison is made of the inhibition of β-N-acetylhexosaminidases (HexNAcases) and α-N-acetylgalactosaminidase (α-GalNAcase) by 8 stereoisomeric 2-N-acetylamino-1,2,4-trideoxy-1,4-iminopentitols; their N-benzyl derivatives are better inhibitors than the parent compounds. Both XYLNAc and LABNAc are potent inhibitors against HexNAcases. None of the compounds show any inhibition of α-GalNAcase.