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>
- White Bean and Parsnip Vegetable Soup
- Spicy Vegetable Korma with Chana Dal in a Cashew Coconut Tomato Sauce
- Chickpea Flour Scramble
- Savory Indian Potato Cakes
- Slow Cooker Spanish Chorizo Chickpea Stew
- Mung Beans in a Golden Karhi Sauce
- Urad Dal with Spices
- Pumpkin Pie Pudding with Banana and Avocado
- Chickpeas with Yogurt and Fresh Mustard Greens
- Spicy Kidney Bean and Chickpea Stew
0 Response to "[Web-development (jquery)] Load XML file using PHP"
Post a Comment