The XML declaration


An XML document must begin with an XML declaration which does two things:

  • specifies that this is an XML document, and which version of the XML standard it follows
  • specifies which character encoding the document uses

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

The default, and recommended, encoding is UTF-8


24 Next | First| Previous Digital Texts with XML and the TEI