Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/01/2013, 11:52
Avatar de jandrogdz
jandrogdz
 
Fecha de Ingreso: julio-2012
Ubicación: public $Guadalajara
Mensajes: 397
Antigüedad: 11 años, 10 meses
Puntos: 12
Pregunta mostrar datos de un xml

Buen dia foro

Tengo un problema intentanto sacar unos datos de un xml de una cancelacion de factura pero me arroja un error de que la varible no existe alguien sabe como puedo sacar el dato SignatureValue

este es el xml

Código XML:
Ver original
  1. <?xml version="1.0" encoding="UTF-8"?><ns2:CancelaCFDResponse xmlns:ns2="http://cancelacfd.sat.gob.mx" xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xml="http://www.w3.org/XML/1998/namespace"><ns2:CancelaCFDResult Fecha="2013-01-11T09:29:32.000-06:00" RfcEmisor="AAA010101AAA"><ns2:Folios><ns2:UUID>4DA72970-8ED8-4031-8E52-2A48A73472E3</ns2:UUID><ns2:EstatusUUID>202</ns2:EstatusUUID></ns2:Folios><ns2:Folios><ns2:UUID>4727CABC-B5B0-40F9-8497-837723B9CED4</ns2:UUID><ns2:EstatusUUID>202</ns2:EstatusUUID></ns2:Folios><Signature Id="SelloSAT"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/><SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#hmac-sha512"/><Reference URI=""><Transforms><Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116"><XPath>not(ancestor-or-self::*[local-name()='Signature'])</XPath></Transform></Transforms><DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><DigestValue>GhBnSjNOw/TAVqnB63ujxpeLKjK6eyzSSOeayS7Fi2rWbIIpztfdrIqeISg/+FE5e2cdpi9naUXi0GxrjzhSdQ==</DigestValue></Reference></SignedInfo><SignatureValue>cGB8KT5LQh0HMgeQ+ztS2fe53cJYEIqvrGeI3/QShknmK8Dt141ZhPr1oELARr5F3dK0e17tM5f2rkmCeGzgcw==</SignatureValue><KeyInfo><KeyName>20001000000100001696</KeyName><KeyValue><RSAKeyValue><Modulus>ANw/++rKpbTGpJ9sLyJkgweTftxSDwe0A+OeIx36MoRpbqoF6JHLZ8J6yqiGG7TTXtrQVcn8KOTvkKyBXRrnabbhaeWblLR+fmzfdywi4fxF5I/XbrSmSceVzF8Vpj87NeGtl1KvFr9BSa1F+1PLwZeYneRjquVBksALIqzwvzcL</Modulus><Exponent>AQAB</Exponent></RSAKeyValue></KeyValue></KeyInfo></Signature></ns2:CancelaCFDResult></ns2:CancelaCFDResponse>

Gracias de antemano
__________________
Lo imposible solo cuesta un poco mas