Re: [Tutor] A somewhat easier way to parse XML

2005-01-19 Thread Danny Yoo
On Wed, 19 Jan 2005, Max Noel wrote: I've just spent the last few hours learning how to use the DOM XML API (to be more precise, the one that's in PyXML), instead of revising for my exams :p. My conclusion so far: it sucks (and so does SAX because I can't see a way to use it for OOP

Re: [Tutor] A somewhat easier way to parse XML

2005-01-19 Thread Max Noel
On Jan 19, 2005, at 03:58, David Rock wrote: For me, it seems that the way you are supposed to interact with an XML DOM is to already know what you are looking for, and in theory, you _should_ know ;-) Indeed. The problem is, even if I know what I'm looking for, the problem remains that given

Re: [Tutor] A somewhat easier way to parse XML

2005-01-19 Thread Kent Johnson
David Rock wrote: * Max Noel [EMAIL PROTECTED] [2005-01-19 11:48]: On Jan 19, 2005, at 03:58, David Rock wrote: For me, it seems that the way you are supposed to interact with an XML DOM is to already know what you are looking for, and in theory, you _should_ know ;-) Indeed. The problem is,

Re: [Tutor] A somewhat easier way to parse XML

2005-01-19 Thread Kent Johnson
Kent Johnson wrote: On Jan 19, 2005, at 03:58, David Rock wrote: Indeed. The problem is, even if I know what I'm looking for, the problem remains that given the following document, foo barbaz/bar /foo If I want to get baz, the command is ... I'll try to find the time to write up a

[Tutor] A somewhat easier way to parse XML

2005-01-18 Thread Max Noel
Hi everyone, I've just spent the last few hours learning how to use the DOM XML API (to be more precise, the one that's in PyXML), instead of revising for my exams :p. My conclusion so far: it sucks (and so does SAX because I can't see a way to use it for OOP or recursive XML trees). I'm

Re: [Tutor] A somewhat easier way to parse XML

2005-01-18 Thread David Rock
* Max Noel [EMAIL PROTECTED] [2005-01-19 00:17]: Hi everyone, I've just spent the last few hours learning how to use the DOM XML API (to be more precise, the one that's in PyXML), instead of revising for my exams :p. My conclusion so far: it sucks (and so does SAX because I

Re: [Tutor] A somewhat easier way to parse XML

2005-01-18 Thread Kent Johnson
Max Noel wrote: Hi everyone, I've just spent the last few hours learning how to use the DOM XML API (to be more precise, the one that's in PyXML), instead of revising for my exams :p. My conclusion so far: it sucks (and so does SAX because I can't see a way to use it for OOP or recursive