I have a very basic XML file which I need parsing with PHP. This must work on PHP 4.1.2.
Details of the XML file are below. This XML file will be being loaded from a different web server to the server this programme will be running on.
<?xml version="1.0" encoding="UTF-8" ?>
**-** <shareprice>** **
<exchange>**LSE**</exchange> ** **
<symbol>**ABC**</symbol> ** **
<price>**437.50**</price> ** **
<date>**21 Aug**</date> ** **
<time>**8:21am**</time> ** **
<change>**+2.50**</change> ** **
<volume>****</volume> ** **
I simply want a file to parse this and store the XML data as PHP variables. So that (for example)
$exchange = LSE
$symbol = ABC
$price = 437.50
This needs to be completed within the next 12 hours. I know this is a simple project so I expect the prices to reflect this.
1) Complete and fully-functional working program(s) as a PHP file.
2) Complete ownership and distribution copyrights to all work purchased.