# Xml

URL: https://chugunov.pro/api-bitrix/documentgenerator/body/xml/
Проверено на 1С-Битрикс 25.x, обновлено 03.08.2026.
Источник: независимый русскоязычный справочник chugunov.pro. Не является официальной документацией 1С-Битрикс.

Класс `\Bitrix\DocumentGenerator\Body\Xml`
Модуль: DocumentGenerator.

Исходный файл: `source/documentgenerator/lib/body/xml.php:8`

## Константы (5)

- `ARRAY_INDEX_MODIFIER`
- `BLOCK_END_PLACEHOLDER`
- `BLOCK_START_PLACEHOLDER`
- `BODY_NODE_NAME`
- `DOCUMENT_NODE_NAME`

## Методы (30)

- [`__construct()`](https://chugunov.pro/api-bitrix/documentgenerator/body/xml/__construct/) — Конструктор Body.
- [`static appendXmlToNode()`](https://chugunov.pro/api-bitrix/documentgenerator/body/xml/appendxmltonode/)
- [`static detectHtml()`](https://chugunov.pro/api-bitrix/documentgenerator/body/xml/detecthtml/)
- [`static getBodyNodeName()`](https://chugunov.pro/api-bitrix/documentgenerator/body/xml/getbodynodename/)
- [`static getCodeFromPlaceholder()`](https://chugunov.pro/api-bitrix/documentgenerator/body/xml/getcodefromplaceholder/)
- [`getContent()`](https://chugunov.pro/api-bitrix/documentgenerator/body/xml/getcontent/)
- [`static getDocumentContentNodes()`](https://chugunov.pro/api-bitrix/documentgenerator/body/xml/getdocumentcontentnodes/)
- [`static getDocumentNodeName()`](https://chugunov.pro/api-bitrix/documentgenerator/body/xml/getdocumentnodename/)
- [`getDomDocument()`](https://chugunov.pro/api-bitrix/documentgenerator/body/xml/getdomdocument/)
- [`getFieldNames()`](https://chugunov.pro/api-bitrix/documentgenerator/body/xml/getfieldnames/)
- [`getFields()`](https://chugunov.pro/api-bitrix/documentgenerator/body/xml/getfields/)
- [`getFileExtension()`](https://chugunov.pro/api-bitrix/documentgenerator/body/xml/getfileextension/)
- [`getFileMimeType()`](https://chugunov.pro/api-bitrix/documentgenerator/body/xml/getfilemimetype/)
- [`static getMainPrefix()`](https://chugunov.pro/api-bitrix/documentgenerator/body/xml/getmainprefix/)
- [`static getNamespaces()`](https://chugunov.pro/api-bitrix/documentgenerator/body/xml/getnamespaces/)
- [`getPlaceholders()`](https://chugunov.pro/api-bitrix/documentgenerator/body/xml/getplaceholders/)
- [`static getRandomId()`](https://chugunov.pro/api-bitrix/documentgenerator/body/xml/getrandomid/)
- [`getStorage()`](https://chugunov.pro/api-bitrix/documentgenerator/body/xml/getstorage/)
- [`static getValidXmlWithContent()`](https://chugunov.pro/api-bitrix/documentgenerator/body/xml/getvalidxmlwithcontent/)
- [`getXPath()`](https://chugunov.pro/api-bitrix/documentgenerator/body/xml/getxpath/)
- [`static insertXmlBeforeNode()`](https://chugunov.pro/api-bitrix/documentgenerator/body/xml/insertxmlbeforenode/)
- [`isFileProcessable()`](https://chugunov.pro/api-bitrix/documentgenerator/body/xml/isfileprocessable/)
- [`normalizeContent()`](https://chugunov.pro/api-bitrix/documentgenerator/body/xml/normalizecontent/) — Нормализует содержимое body.
- [`process()`](https://chugunov.pro/api-bitrix/documentgenerator/body/xml/process/) — Разобрать $content, обработать команды, заполнить значения.
- [`static readFromStorage()`](https://chugunov.pro/api-bitrix/documentgenerator/body/xml/readfromstorage/)
- [`save()`](https://chugunov.pro/api-bitrix/documentgenerator/body/xml/save/)
- [`setExcludedPlaceholders()`](https://chugunov.pro/api-bitrix/documentgenerator/body/xml/setexcludedplaceholders/) — Установить список плейсхолдеров, которые не будут заполнены значениями.
- [`setFields()`](https://chugunov.pro/api-bitrix/documentgenerator/body/xml/setfields/)
- [`setStorage()`](https://chugunov.pro/api-bitrix/documentgenerator/body/xml/setstorage/)
- [`setValues()`](https://chugunov.pro/api-bitrix/documentgenerator/body/xml/setvalues/)

Оригинал в официальной документации: https://docs.1c-bitrix.ru/api/classes/Bitrix-DocumentGenerator-Body-Xml.html
