It defines the version and the encoding used.
For example:
<?xml version= “1.0” encoding=“ISO-8859-1”?>
Here is an example of correct syntax:
<body>It is illegal to omit the closing tag.</body>
And this incorrect:
<body>I would never do that?
Example of correct syntax:
<body>No shouting!</body>
Example of incorrect syntax:
<BoDY>ThIs Is InCoRrEcT.<bODy>
Correct:
<b><i>This text will be italic and bold.<i><b>
Incorrect:
<b><i>This text is neither italic nor bold.<b><i>
For example:
<root>
<child>
<subchild>...</subchild>
</child>
</root>
Correct example:
<note date="02/05/25">
Incorrect example:
<note date=02/05/25>