htmlreport doesn't work with new xml version

I quickly hacked the script to work with the new xml version.
It isn't supposed to be merged, it's more of a bug report with a quick n dirty workaround until it is properly fixed.