$xml = new DOMDocument(); $xml->load('xml.php.xml'); $feed = array(); foreach ($xml->getElementsByTagName('Listing') as $node) { $Image=$node->getElementsByTagName('Image')->item(0)->nodeValue; echo($Image) }
<imagename>j.jpg</imagename> <format>jpg</format>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)