XML question, DOM or SAX?

Bengt Richter bokr at oz.net
Fri Oct 18 21:20:36 CEST 2002

On Fri, 18 Oct 2002 16:42:30 +0200, Markus von Ehr <markus.vonehr at ipm.fhg.de> wrote:

>I want to save one or more spectras in a XML file.
>The program shall be able to read this file into my own
>data object structure, too.
>The data can be displayed or altered.
>After all the data has to be saved again to XML.
Why XML? Is there another consumer of the data whose requirements
you are catering to? Have you looked at the pickle module?

(BTW, I think someone has also written a pickler that uses XML, but I
forgot what it's called)

>Shall I use SAX or DOM?
The structure looks simple enough just to generate with
print statements and a loop or two.

Bengt Richter

More information about the Python-list mailing list