Class XmlValidatorBase
Base class of XmlValidator.
Namespace: DotNetNuke.Common
Assembly: DotNetNuke.dll
Syntax
public class XmlValidatorBase : object
Constructors
| Improve this Doc View SourceXmlValidatorBase()
Initializes a new instance of the XmlValidatorBase class.
Declaration
public XmlValidatorBase()
Properties
| Improve this Doc View SourceErrors
Gets or sets the errors.
Declaration
public ArrayList Errors { get; set; }
Property Value
Type | Description |
---|---|
ArrayList | The errors. |
SchemaSet
Gets the schema set.
Declaration
public XmlSchemaSet SchemaSet { get; }
Property Value
Type | Description |
---|---|
XmlSchemaSet |
Methods
| Improve this Doc View SourceIsValid()
Determines whether this instance is valid.
Declaration
public bool IsValid()
Returns
Type | Description |
---|---|
System.Boolean |
|
Validate(Stream)
Validates the specified XML stream.
Declaration
public virtual bool Validate(Stream xmlStream)
Parameters
Type | Name | Description |
---|---|---|
Stream | xmlStream | The XML stream. |
Returns
Type | Description |
---|---|
System.Boolean | true if the XML is valid, otherwise false. |
Validate(String)
Validates the specified filename.
Declaration
public virtual bool Validate(string filename)
Parameters
Type | Name | Description |
---|---|---|
System.String | filename | The filename. |
Returns
Type | Description |
---|---|
System.Boolean | true if the XML is valid, otherwise false. |
ValidationCallBack(Object, ValidationEventArgs)
Validations the call back.
Declaration
protected void ValidationCallBack(object sender, ValidationEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The sender. |
ValidationEventArgs | args | The |