Hi I\'m trying to convert the XML file into associative array by using the following code
$xmlUrl = \'../products.xml\';
$xmlStr = file_get_contents($xmlUrl)
You should fix your XML string, it's not valid. If you want to keep the XML as is and avoid validation errors, use the 3rd argument of simplexml_load_string() to set the right options, see http://php.net/manual/fr/function.simplexml-load-string.php and http://www.php.net/manual/fr/libxml.constants.php
Btw I don't understand why it shows your XML with escaped quotes, is it escaped in the source file?