JavaNerd, on 11 Oct, 2009 - 12:04 PM, said:
programble, on 11 Oct, 2009 - 08:50 AM, said:
Why don't you get the latest source code and try to familiarize yourself with it? I will be adding more comments, etc in the future so that it is more understandable.
Way ahead of you
Well, you can test the htmlDomParser, but it's really quite buggy (need to add debugger so I can fix it)
Here is an example session in python to test it: (Started in FrozenIce directory)
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import dom
>>> x = dom.parser.htmlDomParser()
>>> x.feed("<html>Some HTML</html>")
>>> dom.model.print_nodes_recursive(x.root_node)
[dom.nodes.htmlTagNode] html : None (None)
- [dom.nodes.htmlTextNode] None : Some HTML (None)
>>>
This is just a test in which you create a parser, feed it some HTML, and then print out the resulting node tree.

New Topic/Question
Reply




MultiQuote



|