<browse_entry> [% IF item.itemobj.isPlaylist %] <entry_type>playlist</entry_type> <entry_name>[% item.text | html %]</entry_name> <entry_id>[% item.itemobj.id %]</entry_id> <browse_url></browse_url> [% ELSIF item.descend %] <entry_type>[% IF item.levelName %][% item.levelName %][% ELSIF item.itemobj.isPlaylist %]playlist[% ELSE %]dir[% END %]</entry_type> <entry_name>[% item.text | html %]</entry_name> <entry_id>[% item.itemobj.id %]</entry_id> <browse_url></browse_url> [% ELSE %] <entry_type>song</entry_type> <entry_name>[% item.itemobj.title | html %]</entry_name> <entry_id>[% item.itemobj.id %]</entry_id> <browse_url></browse_url> [% END %] [% IF item.itemobj.isRemoteURL or item.hreftype == 'browseTree' %] <replace_url></replace_url> <append_url></append_url> [% ELSE %] <replace_url></replace_url> <append_url></append_url> [% END %] [% IF item.descend and item.levelName != 'track' %] <dir_name>[% item.text | html %]</dir_name> <dir_browse_url></dir_browse_url> <dir_url></dir_url> <dir_hierarchy>[% item.hierarchy | html %]</dir_hierarchy> [% IF item.levelName %]<[% item.levelName %]>[% item.text | html %][% END %] [% ELSE %] <song> [% PROCESS _xml_song.html itemobj = item.itemobj %] </song> [% END %] </browse_entry>