Parsing xml file using python

chad antonyliu2002 at yahoo.com
Fri Mar 5 05:16:05 EST 2004


Hi, Thanks.

I downloaded PyXML from sourceforge, but could not install it.  When I
double click the install file, it asks me to go next and choose the
folder to install it, but then it gives me no choice to choose from. 
It seems the installer cannot get my file system info.

I am using Python on Win2K.


"David LeBlanc" <whisper at oz.net> wrote in message news:<mailman.3.1078448959.19534.python-list at python.org>...
> > Hello, all,
> > 
> > I am new to Python.
> > 
> > I need to read an XML document and ignore all XML tags and write only
> > those between the tags to a text file.  In other words, if I have an
> > XML document like so:
> > 
> > <tag1>This</tag1>
> >     <tag2>is</tag2>
> >        <tag3>a</tag3>
> > <tag1>test</tag1>
> > 
> > I need to write "This is a test" to a text file.  How do I achieve
> > this?    Thanks.
> 
> PyXML would be a perfect solution - and easy too.
> 
> Dave LeBlanc
> Seattle, WA USA



More information about the Python-list mailing list