Hello.

1st of all, I'm new in matters of XML, so take me easy.

I have a .php file that generates XML. I have to use that to do an autocomplete. I managed to do it with a xml file, but I don't know how to do it with a .php file that generates XML.

This is a part of my code:

$.ajax({
type: "GET",
url: "/flights.xml" ,
dataType: "xml",
success: parseXml,
complete: setupAC,
error: function() {alert("XML File could not be found"); }
});

If i just change the url with the url to my php, it doesn't work.
What should I do?

Thanks!