replace minidom with BeautifulSoup