Use lxml for xml if it is available.

Refs #9874