Amigo intente con esto pero me da error:
Código PHP:
$parser=xml_parser_create();
function char($parser,$data)
{
echo $data;
}
xml_set_character_data_handler($parser,"char");
$fp=fopen($response,"r");
while ($data=fread($fp,4096))
{
xml_parse($parser,$data,feof($fp)) or
die (sprintf("XML Error: %s at line %d",
xml_error_string(xml_get_error_code($parser)),
xml_get_current_line_number($parser)));
}
xml_parser_free($parser);
Errores:
Cita: Warning: fopen(<?xml version="1.0"?> <parameter> <parameter> <bVipLevelEnabled>YES</bVipLevelEnabled> </parameter> </parameter> ): failed to open stream: No such file or directory in C:\xampp\htdocs\Cliente\cliente.php on line 31
Warning: fread() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\Cliente\cliente.php on line 33