Handle "--xml-version=2"

This also adds "test_htmlreport.py" to the Travis CI tests.