from html5lib import treebuilders
f = open('mydocument.html')
parser = html5lib.XMLParser(tree=treebuilders.getTreeBuilder('beautifulsoup'))
Can I change BeautifulSoup's behavior regarding converting XML tags to lowercase?