Is it possible to feed the parsed XML data into an XSL file? Current I have to deal with a lot of XML files and within each file I need to insert in <?xml-stylesheet type="text/xsl" href="styles.xsl"?>
.
Would this parser save me the time from having to do this? Can I still use the XSL file or would i need to define the output into the PHP file with css?
thanks.
Hi,
Magic Parser removes all the XML context handing you a simple array in each call to your record handler function containing the extracted data, so it wouldn't be a solution with regards to changing the declaration in your XML file.
I think you second statement is correct; if you used Magic Parser your solution would involve standard PHP to generate HTML, which could be styled using CSS as normal...
Hope this helps,
Cheers,
David.