This site uses cookies from Google to deliver its services, to personalize ads and to analyze traffic. Information about your use of this site is shared with Google. By using this site, you agree to its use of cookies. Learn More

[Web-development (jquery)] Load XML file using PHP

Load XML file using PHP
Load XML file using PHP

<div> <ul> <?php $xmlFile = 'xml/testimonials.xml'; $doc = new DOMDocument(); $xsl = new XSLTProcessor(); $doc->load($xmlFile); echo $xsl->transformToXML($doc); ?> </ul> </div> 
<?xml version="1.0" encoding="utf-8"?> <testimonials> <item> <content>This has to be the most awesome app I've ever used!</content> <author-name>John Doe</author-name> <author-url>jdoe.com</author-url> </item> <item> <content>Simply amazing! It solved my problem. I highly recommend it.</content> <author-name>John Smith</author-name> <author-url>smith.com</author-url> </item> <item> <content>A tremendous success. It is like walking on sunshine compared to its competitors.</content> <author-name>John Smith</author-name> </item> </testimonials> 

0 Response to "[Web-development (jquery)] Load XML file using PHP"

Post a Comment

Contact

Name

Email *

Message *