Please look at the following blog:
http://blog.csdn.net/superqa/article/details/9060521
Use ReportGenerator tool
the command line is:ReportGenerator.exe -reports:"D:TestResultsxyz.xml" -targetdir:"D:TestResults"
you can type ReportGenerator.exe /? fro help