The XML Declaration must be at the exact start of the document (i.e. no whitespace leading the declaration).
It consists of three parts specified by pseudo-attributes:
version='n.n' -- specifies version information (e.g. "1.0").
encoding='type' -- specifies the unicode encoding used by this "data stream" to encode the unicode characters of the XML document.
standalone='yes|no' -- a specification of whether the document is sufficiently contained in the current character stream.
An example:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>