Approach to removing extra space at beginning of RSS file? I ran the RSS xml file through W3C's RSS validator. The results say:

line 2, column 0: XML parsing error: &lt;unknown&gt;:2:0: XML or text declaration not at start of entity


I'm not sure how to approach this one. I searched on drupal.org and found these:


RSS Problem
XML Parsing Error: XML or text declaration not at the start of entity .... solution.


Based on the 2nd link, I tried placing an echo in the current template.php being used and the output appeared after the space right before the XML tag. That means the extra line in the RSS XML was placed there before the theming was invoked, right? Where should I look?
Someone left a space at the beginning of a module. 

[space]&lt;?php  


You can either try to find that bit of code with some tool or command OR put this in includes/bootstrap.inc at line 1112:

echo $filename;


The line number could change subject to updates to Drupal 7 so make sure it is inside the drupal_load function:

if ($filename) {
    echo $filename;  //this is your included line
    include_once DRUPAL_ROOT . '/' . $filename;
    $files[$type][$name] = TRUE;


The result will be a long list of the modules being loaded in source code of the page.  The space will be right after the module with the problem.