Description of prolog

XML documents should begin with an XML declaration which specifies the version of XML being used.

<?xml version '1.0' encoding='ISO-8859-1'?>

xml version '1.0': Version of the XML declaration. Version 1.0 means conformance to W3C recommendation of XML (2nd edition, 6/10/2000).

Encoding='ISO-8859-1': Encoding of the XML declaration. Default value is UTF-16, 'ISO-8859-1' corresponds with "8-bit single-byte coded graphic character sets-Part 1: Latin alphabet No. 1", 'ISO-8859-7': corresponds with "8-bit single-byte coded graphic character sets-Part 7: Latin/Greek alphabet".

Example
<?xml version="1.0" encoding="ISO-8859-1"?>

INSTAT/XML is well-formed. INSTAT/XML document can be validated by a Document Type Declaration or an XML schema. In this case, the prolog of INSTAT/XML must contain one of the two following instructions referring to the DTD or XML schema validating INSTAT/XML.

<!DOCTYPE INSTAT SYSTEM "instat62.dtd">

Optional, document type declaration validating the INSTAT/XML document. This Document Type Definition (DTD) is the "instat62.dtd" file.

Example
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE INSTAT SYSTEM "instat62.dtd">

<INSTAT xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="instat62.xsd">

Optional, XML schema validating the INSTAT/XML documents. This schema is the "instat62.xsd" (XSD: XML Schema Definition language [W3C Recommendation, 2 May 2001]).

Example
<?xml version="1.0" encoding="ISO-8859-1"?>
<INSTAT xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:noNamespaceSchemaLocation="instat62.xsd">.

Copyright © European Communities 2002