Import all URLs in a sitemap instantly in Google sheet

=IMPORTXML(“https://www.mysite/sitemap.xml”, “//*[local-name() =’url’]/*[local-name() =’loc’]”)