If the error is really on line 1 and all that is on that line is the <?php tag, then all I can think of is your editor is putting some non-printing character in there. Try to make sure there is nothing else on that line, maybe make sure the editor is saving it as plain text, try a different editor, etc....
If the problem is the <?xml...?> tag, try just deleting that tag completely and see what happens.