And the question is, how to do it?
Well, first you read the XML (using one of those XML modules on cpan), and then you generate the html.
Which part are you having trouble with?
MJDsays "you can't just make shit up and expect the computer to know what you mean, retardo!"