XML documentation stinks - help?

Robert Kern rkern at ucsd.edu
Wed Sep 1 07:20:58 CEST 2004


Simon John wrote:

> No, that's the docs I'm talking about, it's awful IMO.

[Referring to the Python/XML HOWTO]

Okay, tell us specifically how to make it better. What information do 
you think it ought to contain?

> So far I've found a little bit of info on the xml.parsers.expat module,
> and got the following working the way Perl does, but it seems to create
> blank elements due to whitespace!
> 
> And it seems the expat module has been deprecated in favour of SAX?

To my knowledge, the recommended way to do this kind of processing is to 
use SAX in an object-oriented fashion. If you were looking for an 
example in this style, you probably won't find one because it's not 
recommended. In my opinion, it's pretty clear that classes (as used in 
SAX) make this kind of parsing task much more manageable.

-- 
Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter



More information about the Python-list mailing list