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
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README
library_parser.py
simple_data_handler.py
test.xml

README

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!