Parse XML using Python

Anil anilby at gmail.com
Thu Dec 9 15:00:27 CET 2004


Thomas Guettler wrote:
> Am Wed, 08 Dec 2004 23:25:49 -0800 schrieb anilby:
>
> > Hi,
> >
> > I wanted to write a script that will read the below file:
>
> Hi,
>
> Here is an example how to use sax:
>
> http://pyxml.sourceforge.net/topics/howto/node12.html
>
>  Thomas
>
> --
> Thomas Güttler, http://www.thomas-guettler.de/


Could you please tell me how to achieve the below.
I am interested in  getting the output like:

ABC
EFGA   --> child of ABC
ABDG   --> child of AEFGA
MON   --> child of ABC
A1
     FGA   --> child of A1
     BG    --> child of FGA




More information about the Python-list mailing list