Okay I am new to this, I have generated a valid XML document using PHP as such:

<?php
$con = mysql_connect("*taken out*", "*taken out*", "*taken out*");

mysql_select_db("sohahnet_tpm");

$result = mysql_query("SELECT id,name,adress,text,price,image1 FROM jos_properties_products WHERE id ORDER BY RAND() LIMIT 1");
if (!$result) {
echo 'Properties not found - ' . mysql_error();
exit;
}
$row = mysql_fetch_row($result);

echo "<?xml version=\"1.0\" ?> \n<property> \n <name>";
echo $row[1];
echo "</name> \n <address>";
echo $row[2];
echo "</address> \n <description>";
echo $row[3];
echo "</description> \n <price>";
echo $row[4];
echo "</price> \n <image>";
echo $row[5];
echo "</image> \n </product>";
?>

I tested it out and it generates a nice valid XML document, the thing is I don't know much about actionscript and I to be able to use different fields in different places. For example I want the name tag from the XML to come up in a dynamic text field but nothing else, only the name tag, once I know this I can do the rest too...

Thanks,

Sohail Amir.