<?php
// calling stored procedure to get clob data type (we use to get xml from oracle)
error_reporting(E_ALL ^ E_NOTICE);
$conn = oci_connect($user, $password);
$sql = "BEGIN sp_employee_xml_data_select(:result); END;";
$stmt = oci_parse($conn , $sql);
$objClob = oci_new_descriptor($conn, OCI_D_LOB);
oci_bind_by_name($stmt, ':result', $objClob, -1, OCI_B_CLOB);
oci_execute($stmt, OCI_DEFAULT);
$xmlData = $objClob->load($result);
$objClob->free();
oci_free_statement($stmt);
echo $xmlData;
?>