OK to put comments before the XML declaration?
No, it’s not OK. Appendix F of the XML spec says: Because each XML entity not accompanied by external encoding information and not in UTF-8 or UTF-16 encoding must begin with an XML encoding declaration, in which the first characters must be ‘< ?xml’, any conforming processor can detect, after two to four octets of … Read more