RemoveDoctypeDeclaration

Group

Preparsers

Function

This preparser is able to remove a DOCTYPE declaration at the beginning of an XML file.

Configuration file

sample_remove_doctype.properties

Description


This preparser is deprecated.

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 note: The option Result of preparser does overwrite backup file must be active.

Parameter Description

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 . For details see EncodingByBomOrXmlPreParser.

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_remove_doctype.properties
breakLine=100