html-generator: Implement parsing from XML