• Модуль: webservice
  • Путь к файлу: ~/bitrix/modules/webservice/classes/general/xmlcreator.php
  • Класс: CXMLCreator
  • Вызов: CXMLCreator::setAttribute
function setAttribute($attrName, $attrValue)
{
	global $APPLICATION;

	//$attrName = static::xmlspecialchars($attrName);
	$attrValue = $APPLICATION->ConvertCharset($attrValue /*static::xmlspecialchars($attrValue)*/, LANG_CHARSET, 'utf-8');

	$newAttribute = array($attrName => $attrValue);
	$this->attributs = array_merge($this->attributs, $newAttribute);
}