This simple snippet produces a nested list of sections and their articles.
The code produces an unordered list of linked sections and their articles which can be used for menus and/or sitemaps.
Sample output
The code
<ul id="menu">
<li><a href="<txp:site_url />"><txp:site_name /></a></li>
<txp:section_list break="li">
<txp:section title="1" link="1" />
<txp:article_custom section='<txp:section />' break="li" wraptag="ul" limit="9999">
<txp:permlink><txp:title /></txp:permlink>
</txp:article_custom>
</txp:section_list>
</ul>