Hi folks,
I'm fairly new at XML and im trying to find a simple way to extact the information from an XML file.
My xml is fairly simplistic also, something like this:
<name>
<fname>Gordon</fname>
<sname>Copestake</sname>
</name>
etc
I would like my php to be able to do something like:
<?php
$xmlfile="test.xml";
xml_echo <fname>;
xml_echo <lname>;
?>
obviously this isn't real code, but this is the sort of functionality i want. Is there a simple way to do this?
Thanks and regards
Gordon Copestake