HI @Abdul_Wajeed
If you have page information in AEM GraphQL data, write a custom AEM service to query your required content fragments or structured data and dynamically build your sitemap
In Node.js tools like sitemap a Node.js library, can generate XML files from data fetched via REST APIs or...