Gets the boolean indication whether the xml declaration should be outputted or not.

This viper method also supports the extension viper syntax.

Syntax

Smartsite SXML CopyCode image Copy Code
boolean this.getomitxmldeclaration()

Extension Viper Syntax

Smartsite SXML CopyCode image Copy Code
boolean page.<id>.getomitxmldeclaration()

Parameters

This Viper method does not expose any parameters.

Return Value

Data Type Description
Boolean True if XML declaration should be omitted; otherwise, false.

Used in

Macro Description
XHtmlPage Xhtml container macro that helps you setting the doctype, the xml declaration and the encoding of the document.

Expand image Example

SXML