Re: Get html DOM tree by only basic builtin moudles

2015-06-05 Thread Wesley
Hi Laura, Sure, I got special requirement that just parse html file into DOM tree, by only general basic modules, and based on my DOM tree structure, draft an bitmap. So, could you give me an direction how to get the DOM tree? Currently, I just think out to use something like stack, I mean,

Re: Get html DOM tree by only basic builtin moudles

2015-06-05 Thread Ian Kelly
On Fri, Jun 5, 2015 at 12:10 PM, Wesley nisp...@gmail.com wrote: Hi Laura, Sure, I got special requirement that just parse html file into DOM tree, by only general basic modules, and based on my DOM tree structure, draft an bitmap. So, could you give me an direction how to get the DOM

Re: Get html DOM tree by only basic builtin moudles

2015-06-05 Thread Wesley
On Fri, Jun 5, 2015 at 12:10 PM, Wesley nisp...@gmail.com wrote: Hi Laura, Sure, I got special requirement that just parse html file into DOM tree, by only general basic modules, and based on my DOM tree structure, draft an bitmap. So, could you give me an direction how to get

Get html DOM tree by only basic builtin moudles

2015-06-04 Thread Wesley
Hi guys, I know there are many modules(builtin or not, e.g. beautifulsoup,xml,lxml,htmlparser .etc) to parse html files and output the DOM tree. However, if there is any better way to get the DOM tree without using those html/xml related modules? I mean, just by some general standard modules,

Re: Get html DOM tree by only basic builtin moudles

2015-06-04 Thread Laura Creighton
Elementtree is part of the Python standard library. You are better off using it than rolling your own. (If you were one of the rare people who have some very strange requirements that make you better off writing your own, you wouldn't be asking us. You'd already know.)