Make xmltool works for old lxml version