I'm trying to use xml that is being sent to my php via flash. I've been using some pretty hacked together XML parsing functions but they seem to work ok... until now that is...
I read what flash is sending me as follows:
$string = '';
while(list($key, $val) = each($HTTP_POST_VARS))
{
$string .= $key . '=' . $val;
}
//$string = str_replace('_', ' ', $s);
$xml_file =$string;
So that seems to be fine.. on inspection of xml_file it looks like it should etc.
However... when I try to parse it... php is only reading the first tag... and then it reads no more.
The thing that is driving me insane is... if I don't use the above while loop... and just manually enter the xml into the php so that $xml_file = "valid xml string" - the parser works perfectly.
I can give snippets of the parser if anyone is interested....
😕
sm