Hola a tod@s,
Estoy tratando un xml y lo hago de la siguiente forma
Código PHP:
$sx = simplexml_load_file('fichero.xml');
Algunas veces estos xml tienen errores del tipo
Cita: Warning: simplexml_load_file() [function.simplexml-load-file]: fichero.xml: parser error : error parsing attribute name in C:\wamp\www\xml\index.php on line 2
Quiero capturar este warning en una variable
Alguna idea?
Gracias
Saludos,