Skip to content

Commit 0c8d0de

Browse files
committed
Update README
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40528
1 parent fc60ac2 commit 0c8d0de

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

README

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,13 @@ runtests.py in the tests/ directory
1818
Simple usage follows this pattern:
1919

2020
import html5lib
21-
2221
f = open("mydocument.html")
23-
2422
parser = html5lib.HTMLParser()
2523
document = parser.parse(f)
2624

27-
By default, the returned document is a simple DOM-like structure which
28-
can be navigated using the .parent and .childNode attributes on each
29-
element.
30-
31-
It is also possible to generate an ElementTree tree, this requires the use of the "tree" argument to the parser:
32-
33-
from html5lib.treebuilders import etree
34-
parser = html5lib.HTMLParser(tree=etree.TreeBuilder)
35-
36-
Intrepid users may write their own treebuilder implementations - see
37-
help(html5lib.treebuilders) for more information
3825

39-
More documentation is avaliable in the docstrings.
26+
More documentation is avaliable in the docstrings or from
27+
http://code.google.com/p/html5lib/wiki/UserDocumentation
4028

4129
= Bugs =
4230

0 commit comments

Comments
 (0)