I have a simple search form with two drop-down lists from where to select search criteria which are then processed by a separate php file. Results are rendered in html format by php file in the form of rows/columns (table). I need to display the html results in xml format which are in turn displayed accroding to xlst (.xsl) style sheet. I have xml file and xml schema (xsd) ready i.e well formed and valid. XSLT is rendering XML data as originally planned i.e in nice looking XHTML. Now I need to combine the two mechanisms. My problem is that I cannot find a way in outputting the php results directly to xml format which would then do the xlst transformation through assigned .xsl file. Can anyone help please?