use lxml.html to avoid ElementTree problem with empty tags