I'm getting an XML feed back by doing this:
$xmlfeed= file($request), where $request is a urlencoded URL. It appears that file($request) sends a search query to a search engine and $xmlfeed ends up being an array with the query results.
I want $xmlfeed to be a "well-formed" xml document. Typing $request's contents in the browser displays such an xml document. About the only way to have $xmlfeed look like an xml document is to do a foreach () and write out each line. At least the XML tags are there. The XSLT processor I'm trying to use to combine XSL with XML requires that the xml document be a string, and not the array that file() returns.
All the examples I can find show file.xml already being created. I guess I'm trying to figure out how to pass my URL request ($request) to the search engine and get the results into a .xml file.
Anyone know?