Parsing XML in Python
Sugree (of line-by-line comparison fame) posted what may be the shortest Python XML parsing tutorial of all time. It covers the basics, but I would imagine that’s all most people need.
Sugree (of line-by-line comparison fame) posted what may be the shortest Python XML parsing tutorial of all time. It covers the basics, but I would imagine that’s all most people need.
Nice tutorial, I wish to have it when I was working on my PyEPSGLookup utility. Hmm or may be I made a good decision to use SAX instead of DOM, because I’m just parsing to read data from XML file. What do you think?
Yeah, from the tutorial it sounds like SAX is the way to go if you are only reading (and not writing) XML data.
Last time I tried to handle data I used MiniDOM, and while it wasn’t “hard”, perhaps SAX would have been easier. Perhaps I should revisit that project and try again.