Use lxml for xml if it is available.

Refs #9874
Merge branch 'feature/9874_doctest_xunit_output' into develop