Skip to content

Tag: xml

How to use condition in xml fieldset

I have two eddition in my realise joomla web app. “Common” and “Special” edition. I want to limit “Common” edition with exclude “icons” dir from “images”. expected: I tried the following code but it was not correct (Apparently, if segment cannot be u…

Access data in nested array with PHP

From a web service I am reading an xml file with the following structure I then use the following php code to parse through the data I would expect the code above to display Instead my output is I am real beginner in php and cant really figure this out… Any help please? Answer $productsArray[‘Stor…

Retrieve OuterXML From XML Child Node

I need to retrieve the OuterXML for each speak tag. For example, I need to retrieve this data for the first speak tag in test.ssml: index.php test.ssml all tracks.mp3 bookmarks.dat Test 1 Test 2 Current Output in Browser Desired Output Answer You can get the XML directly using the SimpleXML function asXML() a…

Search in PHP and XML

im working on a website for a customer and I need to make a search form. The website is a Car Dealership, you can check it here http://barradinhas.pt/amazingtrust/cars.php Right now i have the cars being pulled from a XML file by a php function So, i wanted to do an Ajax call or something like that so that th…

Including properties with xpointer in Sulu templates

I have set up some Sulu templates and I have been able to use the method described here to include the contents of an entire file in multiple templates: https://docs.sulu.io/en/2.1/book/templates.html I’m using: <xi:include href=”fragments/common-properties.xml”/ and this works perfectly …