I have been asked to parse a simple file which is stored as an XML file, the data is to be then put into a mysql database.
However I have absolutely no clue what to
$xml = simplexml_load_file($filename); foreach($xml->product as $product) { foreach($product->attributes() as $name => $attribute) { echo "$name = $attribute"; } }