A
anilby
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.
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.