Nathan Harmston wrote:
> However it is quite messy at the moment. The main reason is that Python
> doesnt have a switch statement.
a switch statement wouldn't save you a single line, so I find it a bit hard
to believe that it's the main reason...
> def startElement(self,name,attributes):
>
Hi, Currently I m writing an XML parser that processes an xml file using sax, and I have it working, however I want to make the code of my parser less cluttered and more readable by other people (including myself). However it is quite messy at the moment. The main reason is that Python doesnt have