Voila quelques jours que je ne trouve pas de solution a mon problèmes, je me tourne donc vers vous.
Enfinte je cherche a récupérer une valeur notée dans un champ pour que cela modifie la quantité dans le code XML
Quelqu'un aurait-il une solution a me proposé ? Pour ce faire voici mon code XML :

a écrit :
<?php

$xml = "<?xml version='1.0' encoding='utf-8'?>
<order>
<userAccountId>86852</userAccountId>
<currency>EUR</currency>
<label>Place gradin</label>
<ageGroup>ALL</ageGroup>
<categoryId>661</categoryId>
<urlAcquital><![CDATA[http://www.exemple.com/acquittement.php]]></urlAcquital>
<urlOk><![CDATA[http://www.exemple.com/ok.php]]></urlOk>
<urlKo><![CDATA[http://www.exemple.com/ko.php]]></urlKo>
<urlCancel><![CDATA[http://www.exemple.com/cancel.php]]></urlCancel>
<urlInstall><![CDATA[http://www.exemple.com/install.php]]></urlInstall>
<urlLogo><![CDATA[http://www.exemple.com/logo.gif]]></urlLogo>

<!-- optional -->
<locale>fr_FR</locale>
<issuerAccountLogin>issuerlogin@hipay.com</issuerAccountLogin>

<data>
<nom1>value 1</nom1>
<nom2>value 2</nom2>
<nom3>value 3</nom3>
</data>
<items>
<item id='1'>
<name>first product name</name>
<infos>first product description</infos>
<amount>5.2</amount>
<categoryId>661</categoryId>
<quantity>1</quantity>
<reference>REF1</reference>
<taxes>
<tax id='1'>
<label>shipping</label>
<amount>25</amount>
</tax>
<tax id='2'>
<label>VAT</label>
<amount>19.6%</amount>
</tax>
</taxes>
</item>
</items>
<affiliates>
</affiliates>
</order>";

$data = trim($xml);


$signKey = '9acc902b83dd8783da00c8288941e23b';
$encodedData = base64_encode($data);
$md5Sign = md5($encodedData.$signKey);

?>


Merci d'avance !