exact equality of output between lxml and minidom