Search console sitemap error

i am trying to add sitemap of my webpage but every time i upload sitemap and try to fetch using search console it says coudnt fetch error
did anyone try to upload sitemap and google says success???
i am using this sitemap
…The sitemap code…

<?xml version="1.0" encoding="utf-8"?><!--Generated by Screaming Frog SEO Spider 15.1-->
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>http://www.itskashifwork.epizy.com/portfolio.php</loc>
    <lastmod>2021-05-06</lastmod>
    <changefreq>daily</changefreq>
    <priority>1.0</priority>
  </url>
</urlset>

Is there a specific error message from the Google Search Console?

Your sitemap doesn’t validate because it’s not well formed.
Look at the XML example here:

You have to write something like this:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>http://www.itskashifwork.epizy.com/portfolio.php</loc>
    <lastmod>2021-05-06</lastmod>
  </url>
</urlset>
5 Likes

this is the error

i have tried this but still this error


EDIT: Thanks @alexvf, it looks like this one should work.

That sitemap is valid.
Google should be able to process it unless you are having this problem:

2 Likes

Google is whitelisted for one; and the crawler is advanced enough to run Javascript code and save cookies, etc

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.