Write a foreach loop for array of SimpleXMLElements
- by mjames
Hi, I am using the XPath in PHP 5 to parse a XML document. The problem I have is writing a foreach to correctly display the following array:
XML document sample
value 1
value 2
$xmlfile = 'link_to_file.xml';
$xmlRaw = file_get_contents($xmlfile);
…