Been using this tutorial http://www.kirupa.com/web/xml_php_parse ... ediate.htm
all working well, however it only shows how to gather info from tags ie:
Code: Select all
$xml_headline_key = "*NEWS*STORY*HEADLINE";
Code: Select all
<?xml version="1.0"?>
<news>
<story>
<headline> Godzilla Attacks LA! </headline>
<headline id = "1"> The Monster Arrives</headline>
<description>Equipped with a Japanese Mind-control device, the giant monster has attacked important harbours along the California coast. President to take action. </description>
</story>
</news>
Code: Select all
$xml_headline_key = "*NEWS*STORY*HEADLINE[@id="1"];
Thanks guys