$catalog = new SimpleXMLElement(file_get_contents($file));
foreach($catalog->stores->store as $arStore){
$name = (string)$arStore['name'];
}<?xml version="1.0" encoding="UTF-8"?>
<catalog>
<stores>
<store uid="111" name="444"/>
<store uid="222" name="555"/>
<store uid="333" name="666"/>
</stores> $mysqli->query("INSERT INTO `cansus` (`name` , `text`, `date`) VALUES ('$name' , '$text', NOW())");echo "<div id='buttons'><a href='#' onClick='showContent('test.php')>Добавить</a></div>";?><div id='buttons'><a href='#' onClick="showContent('test.php')">Добавить</a></div><?onClick=\"showContent('test.php')\"