Help required POST form and receive XML response

Hi Experts,
I have very little experience with XML although I know a fair bit of php/mysql.

Background.
I am redesigning / redeveloping a site for an estate agent. The system they use will accept a search form with fields such as price, location, bedrooms etc from the web and instantly send back an XML response with a list of properties and their particulars.

My Problem.
Having so little experience with XML, once the form is submitted, how do I grab the resulting XML so I can manipulate it before it is displayed on the screen? I can see that the feed is working as when I post the form to the url I see on screen the resulting xml.

Ideally I would like to be able to grab the xml and import it into dreamweaver as a recordset or something similar.

I cant actually post the form & url as it contains the clients account data, but it just a standard html form that posts to a remote url.

Can you please post the PHP source code of the xml.php script? It looks like you can process the XML it generated with SimpleXML. So instead of echoing it to the browser output stream, we could use it in a script.

//Code to get XML
define('TARGET_URL','http://www.targeturl.com.folder...');
$parameters = TARGET_URL.'?PARM1=xxx&PARM2=yyy&PARM3=zzz';
$xml = simplexml_load_file($parameters);
------------------------------------------------------
$xml can now be parsed as an object;

The HTML form causes data to be aggregated and submitted to an "action script" which is identified by the URL in the "action=" attribute of the <form> tag.

It's the action script that creates and regurgitates the XML to the browser output stream. I think we need to see / modify that script in order to get the XML into a string that we can interpret with SimpleXML functions. Seeing the form is "nice" but it is the action script that is doing the "man behind the curtain" work, and that seems to be where we want to make a change.

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX.
The logical flow for the problem should be:
Write an event handler for the first drop down box to get …