Gets the XML declaration header currently associated with the page.

This viper method also supports the extension viper syntax.

Syntax

Smartsite SXML CopyCode image Copy Code
string this.xmldeclaration()

Extension Viper Syntax

Smartsite SXML CopyCode image Copy Code
string page.<id>.xmldeclaration()

Parameters

This Viper method does not expose any parameters.

Return Value

Data Type Description
String XML Declaration

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