The hydroxyl is protonated using hydrogen from formic acid, which allows for water molecule to leave. This forms a carbocation, which is resonance stabilized.
The hydroxyl group is protonated using hydrogen from formic acid, which enables a water molecule to depart. This generates a carbocation, which is stabilized by resonance.