2nd commit updated to use elementtree for xml