• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/xmlwriter.php
  • Класс: BitrixMainXmlWriter
  • Вызов: XmlWriter::writeItem
public function writeItem(array $item, $wrapperTag = '')
{
	if ($wrapperTag != '')
	{
		$this->writeBeginTag($wrapperTag);
	}
	foreach ($item as $tag => $value)
	{
		if (is_array($value))
		{
			$this->writeItem($value, $tag);
		}
		else
		{
			$this->writeFullTag($tag, $value);
		}
	}
	if ($wrapperTag != '')
	{
		$this->writeEndTag($wrapperTag);
	}
}