use lxml's doctest funtionality for more robust XML / HTML doctest comparisons