XML question, DOM or SAX?

Markus von Ehr markus.vonehr at ipm.fhg.de
Fri Oct 18 16:42:30 CEST 2002


Hi,

1.
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.

Shall I use SAX or DOM?

2.
One file can contain one or more spectra.
Can the structure be like that?
<spec>
 0.1
 0.2
 0.14
</spec>
<spec>
 0.2
 0.3
 0.11
</spec>
<spec>
 0.14
 0.17
 0.12
</spec>

or is it impossible to enclose all values from one spectra within
the <spec> quotation?

Thanks for any hints,

Markus



More information about the Python-list mailing list