Dude, xml parsing is a nightmare. But BeautifulSoup (yes, for XML too!) can make it bearable.
For speed, avoid DOM if you can. SAX or pull parsers are way faster.
And for nested tags… I just cry a little and then write a recursive function.
For speed, avoid DOM if you can. SAX or pull parsers are way faster.
And for nested tags… I just cry a little and then write a recursive function.
