Nothing should appear before "<?xml..." (except for Byte Order ark, which is part of the same entity).
In general, the problem is that SAX parser doesn't allow any characters before <?xml version="1.0" encoding="UTF-8"?> when parsing XML, not just TAB, CR or line feed. You can have TAB, CR or LF in the XML but not before <?xml version="1.0" encoding="UTF-8"?>.
Issue/Introduction
Error message when parsing XML, "The processing instruction target matching "[xX][mM][lL]" is not allowed..BW-XML-100005"