I'm struggling to get a php page to echo data from an xml file.
I'm loading the XML file into the PHP file using simplexml_load_file.
I've attached a screenmshot of what the file looks like when viewed in a browser and the code below is the page:
(with any login data removed)
<?php $xml=simplexml_load_file('https://website.co.uk/section/service.asmx/GetUsedValuation?Subscriber_ID=XXXXX&Password=XXXXX&Database=CARS&CAPID=67938&CAPCODE=&RegistrationDate=2015/06/14&DatasetDate=2015/06/14&JustCurrent=true&Mileage=12000'); header('Content-Type: text/xml'); echo $xml->asXML(); ?>
What I need is to get the Retail, Clean, Below and Average values to echo onto the page. All I keep getting is errors no matter what way I try to do it.
I don't have a lot of experience working with XML. Previously I've user cURL for something similar but the service for this one won't work with the cURL parameters.
Looking for any help here to get this working please.