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
Related Q & A:
- how delete node in xml file using php?Best solution by Stack Overflow
- How convert .txt file to .Dat file in php?Best solution by Stack Overflow
- How to convert positional attributes in an xml file to normal attributes?Best solution by Stack Overflow
- How to convert build.xml to maven pom.xml file?Best solution by Stack Overflow
- How to convert a HTML file to XML file?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.