Using ElementTree instead of DOM