else { $keepExistingProperties = ('N' == $keepExistingProperties ? 'N' : 'Y'); } $activateFileData = (isset($activateFileData) && 'Y' == $activateFileData ? 'Y' : 'N'); global $nameUTF; $nameUTF = array(); include(dirname(__FILE__).'/ru/commerceml_run_name.php'); if (!isset($nameUTF) || !is_array($nameUTF) || empty($nameUTF)) $strImportErrorMessage .= GetMessage('CAT_ADM_CML1_IMP_ERR_NAMEUTF').'<br>'; if ('' === $strImportErrorMessage) { $xml->LoadString($xml_content); $comm = $xml->select_nodes("/BizTalk/Body/".$nameUTF['CommerceInfo']); if (!is_object($comm[0])) { $comm = $xml->select_nodes("/".$nameUTF['CommerceInfo']); if (!is_object($comm[0])) $strImportErrorMessage .= GetMessage("CICML_INVALID_FILE")."<br>"; } $strVersion = $comm[0]->GetAttribute($nameUTF['CommerceInfoVersion']); if (null !== $strVersion) { if (version_compare($strVersion, '2.0') >= 0) { $strImportErrorMessage .= GetMessage("CICML_INVALID_VERSION")."<br>"; }