<?xml version="1.0" standalone="yes"?>
<rhythmdb version="1.0">
<entry type="song">
<title>Never Let Me Down Again</title>
<genre>Pop/Rock</genre>
<artist>Depeche Mode</artist>
<album>Music For The Masses</album>
<track-number>1</track-number>
<duration>287</duration>
<file-size>6533368</file-size>
<location>file:///home/hector/ogg/depeche_mode/music_for_the_masses/never_let_me_down_again.ogg</location>
<mtime>1079831032</mtime>
<play-count>1</play-count>
<last-played>1083552958</last-played>
<mimetype></mimetype>
</entry>
</rhythmdb>
We will use SSAX library to parse this XML file in to a SXML abstract syntax tree.
In specific we will use the ssax:xml->sxml function that takes a stream and a list of (user-prefix . uri-string) that assigns user prefixes to certain namespaces identified by particular URIs. In this example the file is a config named rhythmdb.xml and the XML namespace is the default so we put the empty list.