I have a field in my xml like this :
<radar snb="09H0000" ver="1023" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="icomsData.xsd">
How can get the variable "xsi:noNamespaceSchemaLocation"
My code to get "snb" and "ver" works fine but not for the 2 others :/
My code :
$fichier = 'test.xml';
$radar = simplexml_load_file($fichier);
echo '</br> Radar :
</br> snb : <strong>'.$radar['snb'].' </strong>ver : <strong>'.$radar['ver'].'</strong> xmlns:xsi : <strong>'.$radar['xmlns:xsi'].' </strong> xsi:noNamespaceSchemaLocation : <strong>'.$radar['xsi:noNamespaceSchemaLocation'].'</strong>';
I tried with " and ' it doesn't change anything.