xmlunit-core : Org.XmlUnit.Validation Namespace

Validator Class

Validates a piece of XML against a schema given in a supported language or the definition of such a schema itself.

Syntax

public class Validator

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Validation
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241

Members

See Also: Inherited members from object.

Public Properties

Schema System.Xml.Schema.XmlSchema . Sets the schema to use in instance validation directly rather than via SchemaSources.
[write-only]
SchemaSource Org.XmlUnit.ISource . Where to find the schema.
SchemaSources Org.XmlUnit.ISource[]. Where to find the schema.

Public Methods

static
ForLanguage (string) : Validator
Factory that obtains a Validator instance based on the schema language.
ValidateInstance (Org.XmlUnit.ISource) : ValidationResult
Validates an instance against the schema.
ValidateSchema () : ValidationResult
Validates a schema.

Extension Methods

static
Singleton<T> (this T) : IEnumerable<T>
An enumerable containing a single element.

Member Details

ForLanguage Method

Factory that obtains a Validator instance based on the schema language.

Syntax

public static Validator ForLanguage (string language)

Parameters

language
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Validation
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241

Schema Property

Sets the schema to use in instance validation directly rather than via SchemaSources.

Syntax

public virtual System.Xml.Schema.XmlSchema Schema { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

since XMLUnit 2.3.0

Requirements

Namespace: Org.XmlUnit.Validation
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241

SchemaSource Property

Where to find the schema.

Syntax

public Org.XmlUnit.ISource SchemaSource { set; }

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Validation
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241

SchemaSources Property

Where to find the schema.

Syntax

public virtual Org.XmlUnit.ISource[] SchemaSources { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Validation
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241

ValidateInstance Method

Validates an instance against the schema.

Syntax

public virtual ValidationResult ValidateInstance (Org.XmlUnit.ISource instance)

Parameters

instance
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Validation
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241

ValidateSchema Method

Validates a schema.

Syntax

public virtual ValidationResult ValidateSchema ()

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Validation
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241