Sets 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.setomitxmldeclaration(boolean value)

Extension Viper Syntax

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

Parameters

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

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