title: Splitting a HTML document using lxml.html
body: <p>I have a HTML document containing multiple chapters of text where the H1 tag is the chapter separator. How can I split such a document into html snippets where each snippet starts with the h1 tag of the corresponding "chapter". I though of prettifying the HTML and then iterating of the content line by line...but that's kind of a hack. Is there a better solution using lxml?</p>