I have read a little bit on XML and I will need it to get some information from already available XML files. I would like to learn it by making very small playlist. However I have encountered the two beasts. I don't know much of XML, especially with python. So I ask, which is the best way to go? (May be some tutorials on python/XML)
Thanks :)

I have read a little bit on XML and I will need it to get some information from already available XML files. I would like to learn it by making very small playlist. However I have encountered the two beasts. I don't know much of XML, especially with python. So I ask, which is the best way to go? (May be some tutorials on python/XML)
Thanks :)

I can't speak specific to Python as I don't have much experience with it yet, but I can speak to DOM vs SAX.

In my experience DOM is used for outputting and/or when you need to keep all the data in memory. SAX is used for quick parsing (and can be very effective on large files) and storing of certain values.

I think this is a well written discussion on SAX vs DOM albeit focused on using Java w/XML.

This article has been dead for over six months. Start a new discussion instead.