--- title: "RemoveDoctypeDeclaration" slug: "remove-doctype-declaration" updated: 2026-09-09T12:31:18Z published: 2026-09-09T12:31:18Z canonical: "docs.lobstersoftware.com/remove-doctype-declaration" --- > ## 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. # RemoveDoctypeDeclaration | **Class name** | com.ebd.hub.datawizard.parser.RemoveDoctypeDeclaration | | --- | --- | ## Description This Preparser is able to remove a DOCTYPE declaration at the beginning of an XML file. It is a stream preparser, which allows you to process data of any size, without storing the whole data in the internal memory. To improve performance, if the input file does not have a DOCTYPE declaration, it is possible to cancel the search after a number of lines. The optional parameter "breakLine" defines the line count, after which the search will be cancelled. A positive integer value is expected, which overwrites the default value of "20". **IMPORTANT:** The option "Result of preparser does overwrite backup file" must be active. ## Parameters | Parameter | Description | | --- | --- | | breakLine | Line count, after which the search for a DOCTYPE declaration is cancelled. | | check.BOM | (optional) If "true", the BOM is observed and the file is recoded accordingly. Default: "false". 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 file ```sample breakLine=100 ``` 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.