Using the following code to get content but it gives warning message i.e Message: simplexml_load_file(): I/O warning : failed to load external entity
$rar_file = rar_open($_FILES['hotelXml']['tmp_name']);
$list = rar_list($rar_file);
foreach($list as $file):
$xml=simplexml_load_file($file->getName()) or die("Error: Cannot create object");
endforeach;
$_FILES['hotelXml'] has the rar file that contains xml files