• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/xml.php
  • Класс: CDataXMLNode
  • Вызов: CDataXMLNode::getAttribute
public function getAttribute($attribute)
{
	if (is_array($this->attributes))
	{
		foreach ($this->attributes as $anode)
		{
			if ($anode->name == $attribute)
			{
				return $anode->content;
			}
		}
	}
	return "";
}