Hola a todos estoy tratando de leer una respuesta de un web service el archivo esta asi
Código HTML:
HTTP/1.1 100 Continue
HTTP/1.1 200 OK
Date: Sat, 11 Feb 2017 04:21:47 GMT
Pragma: no-cache
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: 0
Content-Disposition: inline; filename=response.xml
AuthDeclined: true
AuthResponse: ND
Set-Cookie: JSESSIONID=0000NcIhxzrihLt4lGDCJfHHRhF:14j4qkv92; HTTPOnly; Path=/; Secure
Set-Cookie: JSESSIONID=00003DX_F0p_-SYjTC9xeDwzMsI:14j4qkv92; HTTPOnly; Path=/; Secure
Transfer-Encoding: chunked
Content-Type: text/xml
Content-Language: en-US
X-Frame-Options: SAMEORIGIN
<?xml version="1.0" encoding="UTF-8"?>
<txn><tax2>10</tax2><tax1>13</tax1><ssl_short_description>.....
etc.. etc..
la primera parte es texto y la segunda es un xml, la pregunta que tengo es como puedo leer los nodos del xml.
intente esto sin exito
Código PHP:
$virtual=simplexml_load_file("../xml/miarchivo.xml");
echo $virtual->tax2;
espero puedan ayudarme . desde ya muchas gracias