html-generator: Produce nicer XML in the output file

Designed-by: Prins Carl Philip <carl.philip@hovet.se>