I’m interested in finding out more about how to solve this problem, because it’s been a recurring question over on the drupal.org forums for some time. Users (including myself) have reported that they’re seeing this error when trying to use drupal’s aggregator on WordPress-generated feeds:
The feed from [insert sitename here] seems to be broken, due to an error “Invalid document end” on line 1.
jbenni’s report of two blank lines at the top sounds like it could be related.
(The thread on drupal.org: https://drupal.org/node/127224 )
The solution some users have found is to add the problematic feed to Feedburner and use the resulting feed. Apparently feedburner’s pretty fault-tolerant, and it returns a feed minus the mysterious error.
Two wordpress feeds I’ve encountered that are subject to the intermittent error are https://tametheweb.com/feed/ and https://freerangelibrarian.com/feed/