| 
            
               | 
        
PRELIMINARY INFORMATION - SUBJECT TO CHANGE
                    
        
        
          Viper methods for parsing html and making it compliant to W3C standards
        
        
          
            
Syntax
        
        
          
            
Parameters
        
        This macro does not expose any parameters.
        
          
            
Shared Parameters
        
        | Name | Data Type | Properties | Description | 
|---|---|---|---|
| Access | String | - | Friendly name of the minimum access type level required by the site visitor to execute this macro. | 
| AccessDenied | String | 
                  RawData 
                   | 
                Sets the value that is returned when the site visitor has insufficient access. | 
| AIM | Enum | - | 
                  Sets the AIM scanning mode of the macro.
                   Enum values: 
  | 
              
| Condition | String | 
                  MustBeAttribute 
                   ExpressionSyntax XmlDecode  | 
                
                  Sets the Viper expression to evaluate before actually executing the macro. If the expression returns false, the execution of the module and its child modules is skipped.  | 
              
| Default | String | 
                  RawData 
                   | 
                Sets the default value that will be returned when the execution would otherwise return an empty string. | 
| Error | String | 
                  RawData 
                   | 
                
                  Sets the value to return in case on error occurs during execution. The Viper expressions this.error(), this.error(full) and this.error(type) are available in this context.  | 
              
| Id | String | 
                  MustBeAttribute 
                   Trim  | 
                Sets the Id of the macro. Macros with Ids set can be accessed using Viper by referring to page.[id].[methodname()]. | 
| LocalId | String | 
                  MustBeAttribute 
                   Trim  | 
                Sets the local id of the macro in the current buffer scope. | 
| Rem | String | 
                  RawData 
                   NoCache Trim  | 
                
                  Sets the remarks. Remarks have no effect on the actual execution of the module. They only improve the readability of the code.  | 
              
| ResultFormat | String | 
                  RawData 
                   | 
                Sets the resultformat. | 
| ResultType | Enum | - | 
                  Sets the type of the result.
                   Enum values: 
  | 
              
| Save | Collection | - | Sets the buffer names. | 
| Status | Enum | - | 
                  
            Gets a value indicating the ModuleStatus of this module.
            
                   Enum values: 
  | 
              
| Timeout | Float | - | Sets the timeout in seconds. In the overriden Execute() method, you can call CheckTimeout() to check whether execution has timed out. | 
| Trim | Enum | 
                  MustBeAttribute 
                   | 
                Gets a value indicating how the whitespace is trimmed. | 
| Whitespace | Enum | 
                  MustBeAttribute 
                   | 
                
                  Gets a value indicating whether to preserve whitespace.
                   Enum values: 
  | 
              
          
            
Local Viper Methods
        
        | Viper | Extension | Description | 
|---|---|---|
| This.ClearForcedResult | 
                  Sets the result of the macro. used to override the normal handling of the result creation.  | 
              |
| This.GetForcedResult | Gets the forced result of the macro, set by overriding the normal rendering using SetForcedResult(). | |
| This.RenderTime | ✓ | Returns the render time of the macro in milliseconds. | 
| This.SetForcedResult | 
                  Sets the result of the macro. used to override the normal handling of the result creation.  | 
              
          
            
Shared Local Viper Methods
        
        | Viper | Extension | Description | 
|---|---|---|
| This.AIM.Relations | ✓ | Gets a list of all outgoing AIM relations created by the macro. | 
| This.Buffer.Exists | Checks whether a local buffer exists. | |
| This.Buffer.Get | Gets a local buffer. | |
| This.Buffer.Set | Sets a local buffer. | |
| This.Error.InnerException.Message | Returns the text message of the inner exception of the exception that has occurred. | |
| This.Error.InnerException.SmartsiteCode | Returns Smartsite error code of the inner exception of the exception that has occurred. | |
| This.Error.InnerException.Throw | Makes Smartsite throw the inner exception. | |
| This.Error.InnerException.ToString | Returns the full information of the inner exception of the exception that has occurred, including the stack trace. | |
| This.Error.InnerException.Type | Returns the full Type name of the inner exception of the exception that has occurred. | |
| This.Error.Message | Returns the text message of the exception that has occurred. | |
| This.Error.SmartsiteCode | Returns the Smartsite Error code of the exception that has occurred. | |
| This.Error.Throw | Makes Smartsite throw the current exception. | |
| This.Error.ToString | Returns the full information of the exception that has occurred, including the stack trace. | |
| This.Error.Type | Returns the full Type name of the exception that has occurred. | |
| This.FindExtension | Finds an extension macro. | |
| This.GetParameter | ✓ | Gets the value of the given parameter/property. | 
| This.ParameterExists | ✓ | Checks whether the given parameter/property is set. | 
| This.Result | 
                  
            Returns the result of the macro. Typically used in the ResultFormat property, to format, convert or encode the result.  | 
              |
| This.SXMLPath | Gets the path to the macro in the current execution stack. | 
SXML
- 
			
			Macro
			
		
- AIM Macro
 - AIMScan Macro
 - Application Macro
 - Binary Macro
 - Buffer Macro
 - Cache Macro
 - CacheFile Macro
 - Calendar Macro
 - Chart Macro
 - CmsUpdate Macro
 - Code Macro
 - DigiDLogin Macro
 - Dir Macro
 - DoWhile Macro
 - Embed Macro
 - EmbedPreview Macro
 - EmbedUri Macro
 - Expression Macro
 - FacetedSearchPrepareInputData Macro
 - FacetedSearchPrepareInputData20 Macro
 - FacetedSearchQueryBuilder Macro
 - FacetedSearchQueryBuilder20 Macro
 - FeedReader Macro
 - Filter Macro
 - FilterByHierarchy Macro
 - For Macro
 - Format Macro
 - GoogleWebmasterTools Macro
 - Hidden Macro
 - HtmlPage Macro
 - If Macro
 - Image Macro
 - ImageFromHtml Macro
 - ImageProperties Macro
 - Impersonate Macro
 - ItemComments Macro
 - ItemData Macro
 - Join Macro
 - Json Macro
 - LegacyForm Macro
 - Link Macro
 - Locale Macro
 - Login Macro
 - Lorem Macro
 - Metadata Macro
 - NoAIM Macro
 - PageTranslations Macro
 - Paging Macro
 - Parents Macro
 - Payment Macro
 - PdfDocument Macro
 - PlaceHolder Macro
 - Placeholder.Css Macro
 - Placeholder.CssInclude Macro
 - Placeholder.Javascript Macro
 - Placeholder.JavascriptInclude Macro
 - Placeholder.JavascriptOnLoad Macro
 - PlaceholderData Macro
 - Poll Macro
 - References Macro
 - Region Macro
 - Rem Macro
 - Replace Macro
 - RSS Macro
 - Scf Macro
 - ScheduledJob Macro
 - SearchEngineSitemap Macro
 - SendMail Macro
 - SetFileProperties Macro
 - ShoppingCart Macro
 - Siblings Macro
 - SiteMap Macro
 - Smartlet Macro
 - SmartletBox Macro
 - SmartletEditor Macro
 - SmartletNoScript Macro
 - SmartletPreset Macro
 - SmiData Macro
 - Sort Macro
 - SqlQuery Macro
 - Statistics Macro
 - Switch Macro
 - SyncFileLinks Macro
 - Tags Macro
 - Text Macro
 - Transform Macro
 - TranslationContext Macro
 - ViewHierarchy Macro
 - ViewSource Macro
 - WebAPI Macro
 - Webservice Macro
 - While Macro
 - XHtmlPage Macro
 - XLinks Macro
 - XmlDataTable Macro
 - XmlProcessor Macro
 
 - Macro Parameters
 - Macro Parameter Properties
 - Vipers
 - SXML Data Types
 - Examples
 - Tips & Tricks