Title: sitemap error syntax error
Last modified: February 6, 2018

---

# sitemap error syntax error

 *  Resolved [gratuitance](https://wordpress.org/support/users/gratuitance/)
 * (@gratuitance)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/sitemap-error-syntax-error/)
 * 311/5000
    Hello; I have a problem with my sitemap file, here is the error I have:
 * XML parsing error: syntax error
    Location: [http://gratuitance.ddns.net/main-sitemap.xsl](http://gratuitance.ddns.net/main-sitemap.xsl)
   Line Number 1, Column 50: <! DOCTYPE HTML PUBLIC “- // IETF // DTD HTML 2.0 //
   EN”> ————————————————- ^
 * could you help me please.
    I tried using it in Google’s search-console but it
   does not work. cordially.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsitemap-error-syntax-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Rumejan](https://wordpress.org/support/users/onlyincebu/)
 * (@onlyincebu)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/sitemap-error-syntax-error/#post-9945920)
 * The stylesheet, [http://gratuitance.ddns.net/main-sitemap.xsl](http://gratuitance.ddns.net/main-sitemap.xsl),
   isn’t reachable (404) which is why the human-readable browser view of your sitemap
   index, [http://gratuitance.ddns.net/index.php/sitemap_index.xml](http://gratuitance.ddns.net/index.php/sitemap_index.xml),
   is blank. Please refer to this kb article: [https://kb.yoast.com/kb/my-sitemap-is-blank-what-s-wrong/](https://kb.yoast.com/kb/my-sitemap-is-blank-what-s-wrong/)
 * ​Please note that the stylesheet is only used to render the human-readable browser
   view of the sitemap and doesn’t affect how search engine crawls it. We confirm
   that the sitemap is being generated correctly by checking its source code and
   that Google will be able to parse it without problems.
 *  Plugin Support [Michael Tiña](https://wordpress.org/support/users/mikes41720/)
 * (@mikes41720)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/sitemap-error-syntax-error/#post-9975940)
 * No further response, setting to resolved.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘sitemap error syntax error’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Michael Tiña](https://wordpress.org/support/users/mikes41720/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/sitemap-error-syntax-error/#post-9975940)
 * Status: resolved