New to Telerik ReportingStart a free 30-day trial

Provide methods for XHTML validation

Definition

Namespace:Telerik.Reporting.Processing

Assembly:Telerik.Reporting.dll

Syntax:

C#
public class XhtmlValidator

Inheritance: objectXhtmlValidator

Constructors

C#
public XhtmlValidator()

Methods

Determines if the provided markup is valid XHTML that HtmlTextBox can parse. If the provided value is an expression, true is returned.

C#
public static bool IsValidXhtml(string markup)
Parameters:markupstring

The XHTML markup.

Returns:

bool

True if the XHTML is valid.

Determines if the provided markup is valid XHTML that HtmlTextBox can parse. If the XHTML parse operation fail exception is thrown. If the provided value is an expression, no exception is thrown.

C#
public static void ValidateXhtml(string markup)
Parameters:markupstring

The XHTML markup.