Revert "write HTML, not XML"

This reverts commit 17fa6c7feec89220da9bb2d930b1a7a7d152b18d.

It broke tests and I need to study how to generate the right output.