i am not referring to reading a sitemap. i want to generate a .sitemap file using template. i tried but i could not able to do to beacause of the nested levels in the sitemap. so i am looking for the better solution.