Title: XML Error // sitemap.xml not shown correctly
Last modified: August 21, 2016

---

# XML Error // sitemap.xml not shown correctly

 *  [holgee](https://wordpress.org/support/users/holgee/)
 * (@holgee)
 * [12 years ago](https://wordpress.org/support/topic/xml-error-sitemapxml-not-shown-correctly/)
 * Hi,
 * i had installed the 4.0.5 Version of the plugin and have made the changes in 
   the wp-config.php and .htaccess file, who are quoted in this post:
    [http://wordpress.org/support/topic/set-sitemap-path-manually-does-not-longer-work?replies=8](http://wordpress.org/support/topic/set-sitemap-path-manually-does-not-longer-work?replies=8)
 * When opening the sitemap, it displays the following error:
 * > XML-Verarbeitungsfehler: XML- oder Text-Deklaration nicht am Beginn der Entität
   > 
   > Adresse: [http://www.roaring-cubes.com/sitemap.xml](http://www.roaring-cubes.com/sitemap.xml)
   > Zeile Nr. 2, Spalte 1:
 * (German Site)
    I am Using WP 3.9 on a NginX Server. The SEO Plugin is “All in
   one SEO Pack” …
 * I also tried to downgrade the plugin, but this causes that the page completely
   went down.
 * Maybe someone can help ??
 * Many thanks in advance
 * [https://wordpress.org/plugins/google-sitemap-generator/](https://wordpress.org/plugins/google-sitemap-generator/)

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

 *  [Arne](https://wordpress.org/support/users/arnee/)
 * (@arnee)
 * [12 years ago](https://wordpress.org/support/topic/xml-error-sitemapxml-not-shown-correctly/#post-4862563)
 * Please see this help topic for the reason:
 * [Google Webmaster Tools reports Invalid XML](http://www.arnebrachhold.de/projects/wordpress-plugins/google-xml-sitemaps-generator/help/#P221_gwtinvxml)
 *  Thread Starter [holgee](https://wordpress.org/support/users/holgee/)
 * (@holgee)
 * [12 years ago](https://wordpress.org/support/topic/xml-error-sitemapxml-not-shown-correctly/#post-4862587)
 * Hi Arnee,
 * many thanks for your help! I have checked the functions.php and it ends with 
   a `?>`, also the quoted workaround does not fix the problem, unfortunately … 
   so it seems that one of the other Plugins causes the error …
 * But i am planing an update of the whole installation and the theme in the near
   future, then at the latest i hope to find out which other plugin causes the error…
 * If i have found it, i will give you a info regarding this.
 *  [EMEFKA](https://wordpress.org/support/users/emefka/)
 * (@emefka)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/xml-error-sitemapxml-not-shown-correctly/#post-4862673)
 * [@holgee](https://wordpress.org/support/users/holgee/)
 * Hi,
    I have the same problem. how did you solve it?!
 * Thankss
    EMEFKA
 *  Thread Starter [holgee](https://wordpress.org/support/users/holgee/)
 * (@holgee)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/xml-error-sitemapxml-not-shown-correctly/#post-4862674)
 * [@emefka](https://wordpress.org/support/users/emefka/)
    Hi, unfortunately, i 
   could not fix the problem – so i did an update of the whole wp and plugin installation.
   After that, everything works fine.

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

The topic ‘XML Error // sitemap.xml not shown correctly’ is closed to new replies.

 * ![](https://ps.w.org/google-sitemap-generator/assets/icon-256x256.png?rev=2713572)
 * [XML Sitemap Generator for Google](https://wordpress.org/plugins/google-sitemap-generator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-sitemap-generator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-sitemap-generator/)
 * [Active Topics](https://wordpress.org/support/plugin/google-sitemap-generator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-sitemap-generator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-sitemap-generator/reviews/)

## Tags

 * [WP 3.9](https://wordpress.org/support/topic-tag/wp-3-9/)

 * 4 replies
 * 3 participants
 * Last reply from: [holgee](https://wordpress.org/support/users/holgee/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/xml-error-sitemapxml-not-shown-correctly/#post-4862674)
 * Status: not a support question