home go links go books go opinion go gallery go projects go resumé go
about this site
archives
book reviews
"to read" list
tech books
search books
books archive
last 10 posts
quotes
cluetrain
cluetrain (mirrored)
randobracket
image auth
search engine hits
  hit history
indexer stats
user agent list
HTML (view)
  (most up-to-date)
MS Word (dl)
code examples
doesntsuck.com
doesntsuck.com

December 14, 2005

python and xml   (link)

http://pyxml.sourceforge.net/topics/howto/node26.html
The xml.marshal package contains code for marshalling Python data types and objects into XML. The xml.marshal.generic module uses a simple DTD of its own, and provides Marshaller and Unmarshaller classes that can be subclassed to marshal objects using a different DTD.

http://diveintopython.org/xml_processing/
These next two chapters are about XML processing in Python. The following is a complete Python program which generates pseudo-random output based on a context-free grammar defined in an XML format.

http://feedparser.org/
Parse RSS and Atom feeds in Python. 2000 unit tests. Open source.

http://effbot.org/zone/element-index.htm
The Element type is a simple but flexible container object, designed to store hierarchical data structures, such as simplified XML infosets, in memory. The element type can be described as a cross between a Python list and a Python dictionary.

The Element type is available as a pure-Python implementation for Python 1.5.2 and later. A C implementation is also available, for use with CPython 2.1 and later. A Jython implementation will be included in a future release.

Posted by yargevad at December 14, 2005 10:16 AM


This weblog is licensed under a Creative Commons License.