Message
foo
must appear before all entries
Explanation
All metadata elements must appear before the first entry in a feed.
Solution
Move the element before the first entry
Not clear? Disagree?
You might be able to find help in one of these fine resources.