Smartsite SXML CopyCode image Copy Code
<se:xhtmlpage doctype="html401transitional" encoding="UTF-16" omitxmldeclaration="true">
    HTML 4.01 Transitional : {this.getdoctype()}
    {this.setdoctype(XHtml10Strict)}
    XHTML 1.0 Strict: {this.getdoctype()}
    
    UTF-16: {this.getencoding()}
    {this.setencoding('UTF-7')}
    UTF-7: {this.getencoding()}
    
    True: {this.getomitxmldeclaration()}
    {this.setomitxmldeclaration(false)}
    False: {this.getomitxmldeclaration()}
    
    {this.xmldeclaration()}
    {this.setxmlversion(2.0)}
    {this.xmldeclaration()}
    
</se:xhtmlpage>
Example Result CopyCode image Copy Code
<?xml version="2.0" encoding="utf-7" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
HTML 4.01 Transitional : Html401Transitional
    
    XHTML 1.0 Strict: XHtml10Strict
    
    UTF-16: utf-16
    
    UTF-7: utf-7
    
    True: true
    
    False: false
    
    <?xml version="1.0" encoding="utf-7" ?>

    
    <?xml version="2.0" encoding="utf-7" ?>