Parsing XML (simple)

Thomas Singleton singleton at skynet.be
Tue Oct 16 14:24:49 CEST 2001


"John J. Lee" <jjl at pobox.com> wrote in message news:<Pine.SOL.4.30.0110152011560.8233-100000 at mimosa.csv.warwick.ac.uk>...
> On 15 Oct 2001, Martin von Loewis wrote:
> 
> > singleton at skynet.be (Thomas Singleton) writes:
> >
> > > <commands>
> > > 	<command>commande1</command>
> > > 	<command>commande2</command>
> > > </commands>
>  [...]
> > > After reading the modules doc and a few usenet posts, i have written a
> > > small python program to echo the values contained between tags, but
> > > i'm having troubles with the commands, only the FIRST one is echoed.
> 
> Martin fixed your problem, but since I've read in several different places
> that 'there are two apis for dealing with XML in Python', I thought I'd
> point out the third, XPath, an implementation of which is available in
> 4Suite.  Simpler to use (for my simple purposes, at least), but slower, I
> expect.
> 
> 
> John

Thank you both for your comments !

Thomas Singleton



More information about the Python-list mailing list