By esterification of 6-chloro-2-(hydroxymethyl)pyridine (I) with fuming nitric acid in acetic anhydride.