How To Load Rss Into Php?

How do you load an XSLT and XML file with PHP?

  • I want to load multiple XML documents on the same page, and style them with XSLT. I don't want to use JavaScript because that is too complex, and it looks bad on the page. In ASP, the code to run it on the server is: <% 'Load XML set xml = Server.CreateObject("Microsoft.XMLDOM") xml.async = false xml.load(Server.MapPath("XML FILE)) 'Load XSL set xsl = Server.CreateObject("Microsoft.XMLDOM") xsl.async = false xsl.load(Server.MapPath("XSL FILE")) 'Transform file Response.Write(xml.transformNode(xsl)) %> Is there a PHP version of this? Because I only know of this code; I can't actually use ASP; I have no knowledge in it.

  • Answer:

    Yes, there is: http://www.php.net/manual/en/book.xml.php or try www.php.net and type XML in the search box.

James at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.