Support » Fixing WordPress » XML Parsing Error on RSS Feed

  • I’m getting an XML Parsing error on my RSS feed and I’m not entirely sure where it is coming from. All was well just a few hours ago. I’ve been tweaking templates but just things like the sidebar and CSS. I didn’t know where the RSS template was until a few minutes ago. According to the Feed Validator, there’s a blank line but I have no idea what file that needs to be changed on … or frankly how it got added in the first place.

    Any tips you have on how I can bring my RSS feed back to life would be immensely appreciated. Thanks!


    XML Parsing Error: xml processing instruction not at start of external entity
    Line Number 2, Column 1:
    <?xml version=”1.0″ encoding=”UTF-8″?><!– generator=”wordpress/″ –>

    Feed Validator:


    2. <?xml version=”1.0″ encoding=”UTF-8″?><!– generator=”wordpress/″ –>

Viewing 15 replies - 1 through 15 (of 31 total)
  • Moderator James Huff


    Try disabling all active plugins and check the validation again.

    Check for the blank line.

    My site is at and my WP1.5.2 installation is at

    I opened the wp-rss2.php file and took out any blank lines. It didn’t help.

    I’m confused how this is now a problem all of a sudden. 🙁

    Moderator James Huff


    Try disabling all active plugins and check the validation again.

    Can you post the top of your wp-rss2.php file here? the actual php file, not the output from your browser.

    Yeah, I disabled all my plugins. Fun! (not) It’s still not working. FWIW: I haven’t added any new plugins in a couple weeks.

    Moderator James Huff


    Never mind, I see your problem now. You have a blank line at the top of your theme’s Header Template (header.php). Remove that blank line and your feed should be fine.

    Hey macmanx, I know you’re just trying to help, but repeating your comments verbatim is patronizing and annoying. Please don’t.

    Braindwidth: When you say “top of your wp-rss2.php” file … how much of the file is the top? Ah nothing quite like feeling like an idiot. (More fun.)

    Moderator James Huff


    Thank you for lecturing me, Brainwidth. Your observational skills have not waned.

    I removed all the blank lines on header.php … doesn’t seem to have helped, alas.

    Just down to where it says <channel>

    Moderator James Huff


    Sooz, when you go to your blog and view source, you’ll see a blank line at the top. This is the problem that you are seeing reflected in your RSS feed. If it’s not in the header template, then it’s in a related file. Try both index.php files and wp-blog-header.php. The blank line will be only at the top of one of the files.

    Brainwidth: I posted the info. Thanks for checking it out.

    macmanx: I’ll give that a try again. Thanks!

    Unfortunately I can’t find the file where the blank line is it. It’s not in index.php or wp-blog-header.php …. I guess if nothing else I’ll delete everything and reinstall. But damn that would suck. 🙁

Viewing 15 replies - 1 through 15 (of 31 total)
  • The topic ‘XML Parsing Error on RSS Feed’ is closed to new replies.