Thanks, the debug function shows that:
Debug information for $answer:
namehtml, attr[Array], value , children[Array]
Also: it seems like the information we are sending is a string (rather than an xml) as what gets there is:
<data attr="S102_03">1</data>
Here is my code as it stands:
// create xml
$xml = '<?xml version="1.0" encoding="UTF-8"?'.'>';
//Then continue with some root tag:
$xml= '<myData>';
//And then add XML with your data:
//set the ID in $xmlPacket, called once
$xml = '<data attr="ID">'.htmlspecialchars(caseNumber()).'</data>';
// write the responses
for ($n = 0; $n < 3; $n++) {
$xml = '<data attr="'.id('S101', $n+1).'">'.htmlspecialchars(value(id('S101', $n+1))).'</data>';
};
for ($n = 0; $n < 3; $n++) {
$xml = '<data attr="'.id('S102', $n+1).'">'.htmlspecialchars(value(id('S102', $n+1))).'</data>';
};
// send xml
$answer = sendXML('
http://dd.virtualpsyclab.net/ddgem/ddgem', $xml);
debug($answer);
Do you know what need to be changed to get sent as the actual xml?
Thank you!