Creating XML using Python

Alex Martelli aleax at aleax.it
Sat Mar 22 09:25:52 EST 2003


William Sonna wrote:
   ...
> "Python & XML - Jones and Drake" is a good source. "Python Cookbook -
> Martelli and Ascher" contains some info.

The latter is mostly thanks to Paul Prescod, by the way -- David and
I did our part in editing, but Paul provided the chapter introduction
and half the recipes in the chapter!

Paul also co-authored "The XML Handbook" with Charles Goldfarb (Prentice
Hall publishes the book), but unfortunately it doesn't seem that book
has Python content.


> You can always do a google search.
> 
> What continues to confuse me is what exactly a standard Python
> distribution contains and what it does not (in terms of XML).

I think the online Python docs (Library Reference) are reasonably
clear in this respect -- you get xml.parsers.expat (assuming you
have or can build the expat library on your box -- it comes
pre-built with the Windows version); xml.dom, with minidom and
pulldom; xml.sax, with handler, saxutils, xmlreader .  The old
xmllib is still included only for compatibility, and the xml/rpc
support (both client-side and server-side) doesn't have all that
much to do with XML per se (it's only _used_, in the xmp/rpc protocol,
to marshal/unmarshal the stuff you're sending/receiving).


Alex





More information about the Python-list mailing list