Hi: I think you should use like this:
p = html5lib.HTMLParser(tree=treebuilders.getTreeBuilder("etree"), cElementTree): BR. Rocky On Aug 6, 4:39 am, Andrew Shuiu <andrei.s...@gmail.com> wrote: > I'm doing something like: > > import html5lib > from html5lib import treebuilders, treewalkers, serializer > p = html5lib.HTMLParser(tree=treebuilders.getTreeBuilder("etree")) > data = open("my.html",'rb').read().decode('iso-8859-2') > TREE = p.parse(data) > > and after execution TREE is None. > No exeception is rised. > Why? > Can anyone help me with. -- You received this message because you are subscribed to the Google Groups "html5lib-discuss" group. To post to this group, send an email to html5lib-disc...@googlegroups.com. To unsubscribe from this group, send email to html5lib-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/html5lib-discuss?hl=en-GB.