Trying to get the node value of ds:X509Certificate
in PHP. I am able to navigate till IDPSSODescriptor
tag, any pointers on how to access child node values.
<EntityDescriptor>
<IDPSSODescriptor>
<ds:Signature >
<ds:SignedInfo>..</ds:SignedInfo>
<ds:SignatureValue>..</ds:SignatureValue>
<ds:KeyInfo>
<ds:X509Data>
<ds:X509Certificate/>
</ds:X509Data>
</ds:KeyInfo>
<test>
<test2>
</IDPSSODescriptor>
</EntityDescriptor>
php code working so far,
$data = $idp_xml->IDPSSODescriptor->attributes()->ID;
I tried,
$xml = new SimpleXMLElement($idp_xml->IDPSSODescriptor);
$data = (string) $xml->ds:Signature[0]->ds:KeyInfo->ds:X509Data->ds:X509Certificate.