The SimpleDataHandler can be used to parse JSON-like documents, like test.xml. python library_parser.py test.xml I can't think of a good name for the parser. If you find it useful, feel free to suggest a new name for it!
tmitchell/python-itunes-library
A SAX handler written in Python, suitable for parsing an iTunes Library into a JSON like structure. Currently it loads the entire document into memory, but it could be easily modified to parse only the desired sections. Warning: coded quickly, tested even quicker! Not much validation going on in the code...
Python