Trivial Thoughts
Thoughts and discussion on programming projects using the Python language.


Python Sites of Note
Software Development



Recent Posts
 8/21/03
 7/21/03
 7/17/03
 7/10/03
 7/7/03
 7/1/03
 6/26/03
 6/25/03
 6/18/03
 6/15/03
 6/2/03
 5/28/03


Subscribe to "Trivial Thoughts" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.
 

 

Monday, July 07, 2003
 

ElementTree and Tidy

Way back in Part 4, I discussed the fact that I was not able to get ElementTree's build-in Tidy functionality to work for me.  It depended on having an executable Tidy command, that it would run via os.system().  Therefore, I switched to M.-A. Lemburg's mxTidy, which used a library-ized version of Tidy.  However, using mxTidy lead me down the whole path of needing to create the FileAdapter class so that I could use mxTidy as part of a chain of file-like objects...

Now comes an announcement from Mr. ElementTree himself (the effbot), that the new 1.2 (final) version of ElementTree will use a (different) library-ized version of Tidy, and that the new TidyHTMLTreeBuilder parser will use this version of Tidy to directly build an element tree from HTML.  Woot!  This will allow me to greatly simplify my appointment-making robot.  I will eagerly await the release of ElementTree 1.2 (final).

(Upon further investigation, I discovered that both ElementTree and mxTidy are in fact using the same library-ized version of Dave Raggett's HTML Tidy program.)


3:46:21 PM  comment []    


Click here to visit the Radio UserLand website. © Copyright 2003 Michael Kent.
Last update: 8/21/2003; 3:59:34 PM.
This theme is based on the SoundWaves (blue) Manila theme.
July 2003
Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Jun   Aug

Previous/Next