Hello,
sitemap generator has a built-in "crawler" script that browses your site similar to human visitors, i.e. it opens your homepage, finds all links on it, then open each found link and searches for deeper links etc., until full site is crawled and all links are included in sitemap.