Title: Error reading XML:
Last modified: August 31, 2016

---

# Error reading XML:

 *  Resolved [joxepo](https://wordpress.org/support/users/joxepo/)
 * (@joxepo)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/error-reading-xml/)
 * Hello!! I have a problem while I’m creating my sitemap, allways Error reading
   XML.
 * Error reading XML: XML or text declaration in a place other than the principle
   of the entity
    Location: [http://www.cmelastablas.com/sitemap.xml](http://www.cmelastablas.com/sitemap.xml)
   Line Number 2, column 1:
 * What can I do??
 * Greetings!!
 * [https://wordpress.org/plugins/all-in-one-seo-pack/](https://wordpress.org/plugins/all-in-one-seo-pack/)

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

 *  Plugin Support [Steve M](https://wordpress.org/support/users/wpsmort/)
 * (@wpsmort)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/error-reading-xml/#post-7241208)
 * I checked your sitemap and I see no errors and I can view the sitemap just fine–
   view-source:[http://www.cmelastablas.com/sitemap.xml](http://www.cmelastablas.com/sitemap.xml)
 *  [tsetsaf](https://wordpress.org/support/users/tsetsaf/)
 * (@tsetsaf)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/error-reading-xml/#post-7241261)
 * Similar errors on a sitemap. Just activated
 *     ```
       This page contains the following errors:
   
       warning on line 2 at column 216: xmlns: URI //www.sitemaps.org/schemas/sitemap/0.9 is not absolute
       error on line 382 at column 67: EntityRef: expecting ';'
       Below is a rendering of the page up to the first error.
       ```
   
 *  Plugin Support [Steve M](https://wordpress.org/support/users/wpsmort/)
 * (@wpsmort)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/error-reading-xml/#post-7241262)
 * I don’t see that error but I do see this error:
 * This page contains the following errors:
 * error on line 2 at column 6: XML declaration allowed only at the start of the
   document
    Below is a rendering of the page up to the first error.
 * The cause of that error is a blank space before the opening PHP tags or after
   the closing PHP tags in one of the files on your site. This is a well known issue
   with XML code, if an invalid blank space is detected in a PHP file then you will
   get this error. You’ll need to go through all your PHP files to try to find the
   invalid space. I recommend starting with the PHP files in your theme.

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

The topic ‘Error reading XML:’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-seo-pack/assets/icon.svg?rev=2443290)
 * [All in One SEO – Powerful SEO Plugin to Boost SEO Rankings & Increase Traffic](https://wordpress.org/plugins/all-in-one-seo-pack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-seo-pack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-seo-pack/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-seo-pack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-seo-pack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-seo-pack/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Steve M](https://wordpress.org/support/users/wpsmort/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/error-reading-xml/#post-7241262)
 * Status: resolved