Title: XML Parsing Error &#8211; syntax error
Last modified: August 21, 2016

---

# XML Parsing Error – syntax error

 *  [Media Design](https://wordpress.org/support/users/tonyweb/)
 * (@tonyweb)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/xml-parsing-error-syntax-error/)
 * Hi!
 * My WP version is 3.5.2 and I use the last version of WordPress SEO by Yoast.
 * I have problem with /page-sitemap.xml
 * and error message is:
 * XML Parsing Error: syntax error
    Location: [http://www.mediadesign.bg/page-sitemap.xml](http://www.mediadesign.bg/page-sitemap.xml)
   Line Number 1, Column 1: **2c35** ^
 * for this site.
 * On the other sites, errors are the same but only numbers are different , instead
   of all sitemaps – page, post, category and etc.
 * For example:
    Line Number 1, Column 1: **15e1b** ^
 * How to fix this problem?

Viewing 15 replies - 16 through 30 (of 31 total)

[←](https://wordpress.org/support/topic/xml-parsing-error-syntax-error/?output_format=md)
[1](https://wordpress.org/support/topic/xml-parsing-error-syntax-error/?output_format=md)
2 [3](https://wordpress.org/support/topic/xml-parsing-error-syntax-error/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/xml-parsing-error-syntax-error/page/3/?output_format=md)

 *  [patter38](https://wordpress.org/support/users/patter38/)
 * (@patter38)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/xml-parsing-error-syntax-error/page/2/#post-3954527)
 * Yep! (I was at 3.5 before)… no difference…
 *  [webcheck](https://wordpress.org/support/users/webcheck/)
 * (@webcheck)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/xml-parsing-error-syntax-error/page/2/#post-3954528)
 * So to be on the same track: We are all talking about an unwanted output before
   the xml tags start, so the sitemap will fail to parse.
 * Possible problems as discussed so far:
    1) WordPress 3.6 2) Plugin incompatibility
   3) Size malfunction 4) Execution time malfunction
 * Lets rule some of these out.
    1) and 2) might not be the problem – I got the 
   error running 3.5. Transferring all the data to another webhoster couldnt reproduce
   the error (remember: Transferring ALL data – plugins, theme, database, etc). 
   So 3) wont be the problem neither – because the error would have come up on the
   other webhost aswell. 4) reducing the amount of data to process (and therefore
   reducing execution time) solved the case for me. For others it didnt – so this
   might be one trigger, but its very likely that there are others involved too.
 * Another guess: Did any of you manually import data into the wordpress database?
   
   After I did, the error showed for the first time. After manually checking my 
   database entries I found a strangely formatted entry, rewrote this – and got 
   still an error (but a different output before the xml). Perhaps its a combination
   of those two factors: Execution time, and wrongly formatted entries?
 *  [patter38](https://wordpress.org/support/users/patter38/)
 * (@patter38)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/xml-parsing-error-syntax-error/page/2/#post-3954529)
 * I have not done any data loads (unless you count uploading pictures into a picture
   gallery)… content is hand keyed.
 * I will disable all remaining plugings and renable one by one… but late tonight
   so not to mess up any clients.
 * Hmmmm… thinking out load… I added Jetpack not so long ago… but I really don’t
   want to disable that… ugh…
 *  [Reinhard Stompe](https://wordpress.org/support/users/crashguru/)
 * (@crashguru)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/xml-parsing-error-syntax-error/page/2/#post-3954530)
 * The error message is misleading. I had downloaded my DB with 76.000 entries and
   got the same message.
    I have changed these values in the Apache php.ini file
   on my Xampp localhost installation and the sitemap was built:
 * max_execution_time = 3000
    max_input_time = 120 memory_limit = 1000M
 * I am waiting for the reply of my hosting company. The server needs to be re-started.
 *  Thread Starter [Media Design](https://wordpress.org/support/users/tonyweb/)
 * (@tonyweb)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/xml-parsing-error-syntax-error/page/2/#post-3954531)
 * **[@crashguru](https://wordpress.org/support/users/crashguru/)**,
    just now I
   also change these values as you, I restarted server and again there is no effect.
 *  Thread Starter [Media Design](https://wordpress.org/support/users/tonyweb/)
 * (@tonyweb)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/xml-parsing-error-syntax-error/page/2/#post-3954532)
 * Hi guys! Now, I already fix the problem and I’m going to tell you how I did it.
 * Yoast Plugin – 1.4.13 v.
    in /wp-content/plugins/wordpress-seo/inc/class-sitemaps.
   php
 * at line 750
    `/* Spit out the generated sitemap and relevant headers and encoding
   information. */`
 * I set this code into comment
    `//header( 'HTTP/1.1 200 OK', true, 200 );`
 * and now my all sitemaps working properly.
 * Check this and tell me if it work for you.
 * Have a nice day! 🙂
 *  Anonymous User
 * (@anonymized-6417141)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/xml-parsing-error-syntax-error/page/2/#post-3954533)
 * Where did you put the code?
 *  Thread Starter [Media Design](https://wordpress.org/support/users/tonyweb/)
 * (@tonyweb)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/xml-parsing-error-syntax-error/page/2/#post-3954534)
 * In file “class-sitemaps.php”
 * /wp-content/plugins/wordpress-seo/inc/class-sitemaps.php
 * This code is in the file
    `header( 'HTTP/1.1 200 OK', true, 200 );`
 * just put it into comment
    **`//header( 'HTTP/1.1 200 OK', true, 200 );`**
 *  Anonymous User
 * (@anonymized-6417141)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/xml-parsing-error-syntax-error/page/2/#post-3954535)
 * Dont work for me. this is the error i get: Error loading stylesheet: A network
   error occurred while loading an XSLT stylesheet: [http://www.myabdllife.com/sitemap.xsl](http://www.myabdllife.com/sitemap.xsl)
 *  [sarahkarandy](https://wordpress.org/support/users/sarahkarandy/)
 * (@sarahkarandy)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/xml-parsing-error-syntax-error/page/2/#post-3954536)
 * This is happening to me across 4 sites on striking/ udesign– about to give up
   on this plugin as I have been trying all of these suggestions for the last few
   days and have done everything BUT find the right solution— including taking down
   a few of them with 500 errors by following advice/ hacks to the hta. access file–
 * what is wrong with Yoast?
 *  Anonymous User
 * (@anonymized-6417141)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/xml-parsing-error-syntax-error/page/2/#post-3954545)
 * still have problem.
 *  [patter38](https://wordpress.org/support/users/patter38/)
 * (@patter38)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/xml-parsing-error-syntax-error/page/2/#post-3954547)
 * Additional insight time…
 * The problem is that a BLANK LINE is getting inserted at the beginning of all 
   pages… html, xml… and google does not like that line.
 * I took one of the XML sitemaps generated (all gave me issues) saved it WITHOUT
   the blank line, submitted it to Google and it worked.
 * So… inspectors… what is putting in the freaking blanks line?
 * Anyone?
 *  Anonymous User
 * (@anonymized-6417141)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/xml-parsing-error-syntax-error/page/2/#post-3954549)
 * I still have my problem.
 * this is the error i get: Error loading stylesheet: A network error occurred while
   loading an XSLT stylesheet: [http://www.myabdllife.com/sitemap.xsl](http://www.myabdllife.com/sitemap.xsl)
 *  [AukeJomm](https://wordpress.org/support/users/aukejomm/)
 * (@aukejomm)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/xml-parsing-error-syntax-error/page/2/#post-3954561)
 * Check your functions.php for blanks between <?php and ?>
    You can also delete
   the last ?>
 *  [efitnesstrainer](https://wordpress.org/support/users/efitnesstrainer/)
 * (@efitnesstrainer)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/xml-parsing-error-syntax-error/page/2/#post-3954574)
 * I am still getting the same problem. I love the Yoast plugin – but it seems there
   has been little initiative to fix this. Many others are still having the same
   problem as well. I’d really like to get back to using this plugin for my sitemap.
 * The errors I receive are all centered around not having a readable xsl file, 
   or error loading xslt stylesheet. It just depends on which browser I use.

Viewing 15 replies - 16 through 30 (of 31 total)

[←](https://wordpress.org/support/topic/xml-parsing-error-syntax-error/?output_format=md)
[1](https://wordpress.org/support/topic/xml-parsing-error-syntax-error/?output_format=md)
2 [3](https://wordpress.org/support/topic/xml-parsing-error-syntax-error/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/xml-parsing-error-syntax-error/page/3/?output_format=md)

The topic ‘XML Parsing 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/)

## Tags

 * [sitemap error](https://wordpress.org/support/topic-tag/sitemap-error/)
 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)
 * [XML parsing error](https://wordpress.org/support/topic-tag/xml-parsing-error/)

 * 31 replies
 * 10 participants
 * Last reply from: [zbour31](https://wordpress.org/support/users/zbour31/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/xml-parsing-error-syntax-error/page/3/#post-3954604)
 * Status: not resolved