<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" class="pc chrome win psc_dir-ltr psc_form-xlarge" dir="ltr" lang="en">
<title>Some Title</title>
</html>
if I run:
from lxml import etree
html = etree.parse('text.txt')
result = html.xpath('//title')
print(result)
I will get an empty list. I guess it has something to do with namespace, but I can't figure it out how to fix it.