A declaration must include the version, but the encoding and standalone attributes are optional.
The version, encoding, and standaloneattributes must be in that order.
The XML declaration must be right at the beginning of the file.
A typical XML declaration looks like this:
middle="James"
last="Last"/>
An XML declaration can be as full as the previous one or as simple as:
Because the XML declaration is a processing instruction and not an element, there is no closing tag.