Title: RSS feed not validating
Last modified: August 18, 2016

---

# RSS feed not validating

 *  Resolved [Justin](https://wordpress.org/support/users/iamjustinhines/)
 * (@iamjustinhines)
 * [20 years ago](https://wordpress.org/support/topic/rss-feed-not-validating-2/)
 * 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?

Viewing 1 replies (of 1 total)

 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [20 years ago](https://wordpress.org/support/topic/rss-feed-not-validating-2/#post-391450)
 * 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.

Viewing 1 replies (of 1 total)

The topic ‘RSS feed not validating’ is closed to new replies.

## Tags

 * [RSS](https://wordpress.org/support/topic-tag/rss/)
 * [validate](https://wordpress.org/support/topic-tag/validate/)
 * [validates](https://wordpress.org/support/topic-tag/validates/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * Last activity: [20 years ago](https://wordpress.org/support/topic/rss-feed-not-validating-2/#post-391450)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
