XML question, DOM or SAX?
sismex01 at hebmex.com
sismex01 at hebmex.com
Fri Oct 18 12:10:12 EDT 2002
> From: Markus von Ehr [mailto:markus.vonehr at ipm.fhg.de]
>
> Hi,
>
> when I use the statement:
>
> <spectrum values="0.1 0.2 0.14"/>
>
> and I read the XML-file, do I get a node for the whole line
> conaining the 1000 values and do I have to separate a string
> with something lie: string.split(s, " ") ?
>
> Markus
>
Yup. :-)
You can also use a string method:
values = <get your attribute here>
spectra = values.split()
-gustavo
More information about the Python-list
mailing list