title: Creating an XML sitemap generator
body: <p>I want to create a XML sitemap generator. I have a script which creates a sitemap if placed in your directory with other files. </p>
  
  <p>But I want to create a generator which will work with URL. Here what I actually want to create is, get a URL from user, track all web pages from given URL, put them in a XML sitemap format and give back the same XML file to user.</p>
  
  <p>Please help me in this, I am doing this as project work.
  Following URLs work in same way:<br>
  <a href="http://www.xml-sitemaps.com/" rel="nofollow">http://www.xml-sitemaps.com/</a><br>
  <a href="http://www.web-site-map.com/" rel="nofollow">http://www.web-site-map.com/</a></p>