Removing whitespace preceding XML Declaration

Cause:

The page can't begin with white spaces.

Examples:

Goodtodo todo
Goodtodo todo

Solution:

...

References: