$path_xml = "convert.xml";
$sxe = simplexml_load_file($path_xml); //load as simpleXML
print $sxe->agentname . "
";
print $sxe->email . "
";
foreach ($sxe->allproperty->aproperty as $oneprop ) // loop through entries
{
$area = $oneprop->area;
$type = $oneprop->type;
$price = $oneprop->price;
$visit = $oneprop->visit;
print "$area $type $price $visit
";
}
?>