Class ValidateXsdFileDefinition

Assembly: redb.Route.dll

Leaf definition that validates the exchange body against an XSD file, its imports and includes read
relative to it (see ). The path resolves through the
context's resource resolver when the route is built, as the xslt step's file does, so a schema inside a
package is found where the package keeps its resources.

public sealed class ValidateXsdFileDefinition : ProcessorDefinition, IProcessorDefinition

Inheritance

Object→ProcessorDefinition→ValidateXsdFileDefinition

Implements

Inherited Members

Properties

SchemaPath

Gets the schema file as written.

public string SchemaPath { get; }

SchemaRoot

Gets the directory imports stay under, relative to the schema's directory; null is that directory.

public string? SchemaRoot { get; }

TargetNamespace

Gets the target namespace; null takes the schema's own.

public string? TargetNamespace { get; }

ThrowOnFailure

Gets whether a validation failure throws an exception.

public bool ThrowOnFailure { get; }

Methods

CreateProcessor(IRouteContext)

Compile this node into a runtime processor.

public override IProcessor CreateProcessor(IRouteContext context)

Constructors

ValidateXsdFileDefinition(string, string?, string?, bool)

Creates a validate definition from an XSD file.