$confile = decode("iso-8859-1", $file); my $parser = XML::LibXML->new(); my $doc = $parser->parse_file($confile);