• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/xmlwriter.php
  • Класс: BitrixMainXmlWriter
  • Вызов: XmlWriter::writeFullTag
public function writeFullTag($code, $value)
{
	if ($this->f)
	{
		$code = $this->prepareTag($code);
		fwrite($this->f,
						str_repeat("t", $this->tab) .
						(
							trim($value) == ''
							? '<' . $code . ' />' . PHP_EOL
							:   '<' . $code . '>' .
									$this->prepareValue($value) .
								'' . PHP_EOL
						)
				);
	}
}