replace minidom with etree