For plugin files, does a php file have to be ended with ?>? I'm asking this because I'm getting the error, XML Parsing Error: XML or text declaration not at start of entity and found this post: http://wordpress.org/support/topic/no-rss-xml-parsing-error, http://wordpress.org/support/topic/xml-parsing-error-xml-or-text-declaration-not-at-start-of-entity-2, suggesting to check all files and remove any blank lines at the top or bottom.
I have a plugin file which does not end with ?>. Something like,
<?php
.... some code here ...
?>
<html>
<body></body>
</html>
So should this be changed to this?
<?php
.... some code here ...
?>
<html>
<body></body>
</html>
<?php ?>
I found that even wp-config-sample.php is not ending with ?> in v3.4.1.

?>– Teno Sep 1 '12 at 12:38