WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] RSS feed not validating (2 posts)

  1. iamjustinhines
    Member
    Posted 8 years ago #

    I'm using a javascript code to read my wordpress RSS feed but the script wont work unless the feed validates.

    This is the error i'm getting:

    XML parsing error: <unknown>:2:0: xml declaration not at start of external entity

    I believe its because XML decleration is on the second line and has space before the declaration.

    How can I ensure the decleration is on line 1?

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 8 years ago #

    You have to find what's adding the space and remove it.

    This usually happens when you have some plugin which has a blank line as the first line in the plugin's file. Deactivate plugins one by one until you figure out which one it is, then remove the blank line in that file.

Topic Closed

This topic has been closed to new replies.

About this Topic