Switched to BeautifulSoup since it's much more fault tolerant than ElementTree.