I'm sure this is very simple to someone who has worked with php and xml but I've never doen this. Help is appreciated.
My objective - to parse a simple XML response and put 2 nodes into variables:
// The xml dump:
$xml_dump = "
<?xml version="1.0"?>
<Person>
<FirstName>
John
</FirstName>
<LastName>
Smith
</LastName>
</Person>";
/
I need the code to parse $xml_dump here.
/
// echoing the variables
echo "$FirstName $LastName"; //Should output: John Smith