Re: [Tutor] XML data reading [slightly off topic/silly]

2007-12-20 Thread Eric Walstad
Lockhart, Luke wrote: > ...now I'm a > Linux man and trying to realize my overly ambitious programming dreams > with Python Welcome to the real world, Neo. I'm not saying that you'll be able to work with XML via DOM or SAX in Python. I'm saying that when you are ready, you won't have to. :) (

Re: [Tutor] XML data reading

2007-12-20 Thread Michael Langford
Sax is the simplest to get started with. here is a simple example. See http://docs.python.org/lib/content-handler-objects.html for more info on the methods of ContentHandler. Using some list or dict of tags you're processing such as I do in the following example will keep "tag specific code" down t

[Tutor] XML data reading

2007-12-20 Thread Lockhart, Luke
Hello all, So I'm a very novice Python programmer. I've done stuff up to the intermediate level in Microsoft flavors of BASIC and C++, but now I'm a Linux man and trying to realize my overly ambitious programming dreams with Python, mainly because I have friends who use it and because it has l