Simply generate XML sitemap through any sitemap generator for free, why to go deep!
Automatically generated site maps are useless unless:
a) There are hidden pages you want to be indexed, but if so why hide them????
b) You manually amend the site map entries to give the relative priorities of the web pages.
People who just generate an automated site map and slap it on their site are generally wasting their time. That is why you need to go a little deeper into site maps