Parse XML using Python
anilby at gmail.com
anilby at gmail.com
Thu Dec 9 02:25:49 EST 2004
Hi,
I wanted to write a script that will read the below file:
<abcd label="ABC">
.
<efg label="EFGA">
....
<decg label="ABDG">
..
</decg>
..
</efg>
..
<mon1 label="MON">
..
</mon1>
..
</abcd>
.
.
<xyz label="A1">
.
<eg1 label="FGA">
....
<dg label="BG">
..
</dg>
..
</eg1>
</xyz>
..
and so on
The output of the script shud be
ABC
..EFGA
....ABDG
..MON
A1
..FGA
....BG
Please help me in writing a Python script for the above task.
Regards,
Anil.
More information about the Python-list
mailing list