Log in

View Full Version : Parse XML file



Labra
01-13-2016, 09:42 AM
Hi guys.

I am trying to create a currency converter for my website.

I have found this xml file: http://www.nationalbanken.dk/_vti_bin/DN/DataService.svc/CurrencyRatesXML?lang=da

However i need to parse it in php to get eg. the rate value for EUR.

Anyone who can help me do that ?

Best regards,
Labra

Beverleyh
01-13-2016, 02:34 PM
This might help you http://www.dynamicdrive.com/forums/entry.php?325-XML-to-HTML-Getting-XML-Data-into-a-Web-Page-with-SimpleXML

Labra
01-13-2016, 05:12 PM
Thank you so much. That helped me a lot actually. Nice little extension :P