XML using standard Python modules

Ignacio Vazquez-Abrams ignacio at openservices.net
Wed Sep 12 09:50:46 EDT 2001


On Wed, 12 Sep 2001, Dale Strickland-Clark wrote:

> I'm trying to get to grips with XML using Python.
>
> A simple app to start with, it will read a plain text file containing
> some data, convert it to XML and write an XML file.

Simple enough. This should just be brute-force string manipulation.

> Later that file will be used as a random-access data source.
>
> Where do I start?
>
> I'm reading this: http://py-howto.sourceforge.net/xml-howto/SAX.html
> at the moment. Is it up-to-date?
>
> There seems to be half a dozen XML modules. Which is the right one for
> this type of application? XML.SAX?

Unfortunately SAX is used for linear access. You should use DOM for random
access.

-- 
Ignacio Vazquez-Abrams  <ignacio at openservices.net>





More information about the Python-list mailing list