Pop quiz: characters or bytes? 

use XML::LibXML;

# Parser will open the file in binary mode

$dom = XML::LibXML->load_xml(location => $filename);