--- title: "XmlRootAdderPreparser" slug: "xml-root-adder-preparser" updated: 2026-09-09T13:54:45Z published: 2026-09-09T13:54:45Z canonical: "docs.lobstersoftware.com/xml-root-adder-preparser" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # XmlRootAdderPreparser | **Class name** | com.ebd.hub.datawizard.parser.stream.XmlRootAdderPreparser | | --- | --- | ## Description This Preparser is able to create an artificial root element that encloses the content of the received XML file. This can be used to transform a received XML file with several root elements into a valid XML file. To do so, it might be necessary to remove the XML header beforehand. The default name for the new root element is "RootElement". The resulting XML file will not have an XML header. The preparser uses the encoding in the profile settings, not the one given in the XML header. Another operation mode of the preparser allows creating a header in front of, or a footer after, the content of the received XML file. The text is inserted as normal text and not in the form of XML tags, although the text could contain XML tags. If a header, a footer, or both are defined, the preparser will not create a root element, but instead insert the header text at the beginning of the XML file, followed by New Line, and the footer text at the end of the XML file. ## Parameters | Parameter | Description | | --- | --- | | root.name | (optional) Name of the root element to insert. Default: "RootElement". **IMPORTANT:** This parameter is ignored if one of the parameters "insert.headline" or "append.footline" is used. | | remove.xmlheader | (optional) If "true", the XML header is removed. Default: "false". | | insert.headline | (optional) Text line that is inserted in front of the file content. Default: | | append.footline | (optional) Text line that is inserted after the file content. Default: | | check.BOM | (optional) If "true", the BOM is observed and the file is recoded accordingly. Default: "false". For details see [EncodingByBomOrXmlPreParser](/v1/docs/en/encoding-by-bom-or-xml-pre-parser). | | check.XML | (optional) If "true", the XML encoding is observed and the file is recoded accordingly. Default: "false". For details see EncodingByBomOrXmlPreParser. | ## Example ```sample # # Name of the new root element. Default: RootElement root.name=TestRoot           # Remove XML header? true or false. Default: false remove.xmlheader=true #Textline, to be set at the beginning of the received file. #insert.headline= #Textline, to be set at the end of the received file. Default: space #append.footline= ``` Optional intermediate phase before Phase 2. A preparser manipulates input data before the parser processes it; for example, to remove special characters or convert an unknown format to a supported one. XML (Extensible Markup Language) is a structured text format for storing and exchanging data. Content is enclosed within freely definable tags such as `<order>`. XML is human-readable, machine-processable, and platform-independent. In the Lobster Data Platform, you can receive, parse, and generate XML data.