So i'm not an PHP/XML expert but i've a simple question that i'm sure you can answer !
I'll explain :
I have a xml file which is in /requests/decoded, i need a part of it to follow my PHP script :
$accountToken =
I want him to grab these 2 parts of the XML :
<key>ActivationRandomness</key>
<string>391E262D-27A8-43AB-944F-C4F33AB12F6E</string>
<key>UniqueDeviceID</key>
<string>69348f0d170f3ef67826afa103bec669c23373cf</string>
Can you help me please ? Thanks !
EDIT :
I forgot to mention that i don't want to print something.. I just have to grab 2 string from XML to encode them after.. Here's the next part of the process :
$deviceCertificate =base64_encode($certout);
$accountToken = HERE I NEED ACTIVATIONRANDOMNESS & UNIQUEDEVICEID
$accountTokenBase64 = base64_encode($accountToken);
$pkeyid = openssl_pkey_get_private(file_get_contents("certs/private_key.pem"));
$data = $accountTokenBase64;
openssl_sign($data, $signature, $pkeyid);
My PHP have also this which i don't know how to include the data in the $accountToken :
case "ActivationRandomness": $activationRamdomess = $nodes->item($i + 1)->nodeValue; break;
case "DeviceCertRequest": $deviceCertRequest=base64_decode($nodes->item($i + 1)->nodeValue); break;
case "DeviceClass": $deviceClass=strtolower($nodes->item($i + 1)->nodeValue); break;
case "UniqueDeviceID": $uniqueDiviceID = $nodes->item($i + 1)->nodeValue; break;