At the top of the document, you normally find an XML decalration:
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
version info
required
always has the value 1.0
standalone document declaration
yes
no
encoding declaration
UTF-8
ISO-8859-1
etc.