use elementtree instead