Table of Contents

Interface ISamlSchemaValidator

Namespace
ComponentSpace.Saml2.Utility
Assembly
ComponentSpace.Saml2.dll

Validates XML against the SAML XML schemas.

public interface ISamlSchemaValidator

Properties

Errors

Gets the list of XML schema errors.

IList<string> Errors { get; }

Property Value

IList<string>

The list of XML schema errors.

Warnings

Gets the list of XML schema warnings.

IList<string> Warnings { get; }

Property Value

IList<string>

The list of XML schema warnings.

Methods

Validate(XmlElement)

Validates the XML against the SAML XML schemas

bool Validate(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The XML to validate.

Returns

bool

true if the XML validates against the SAML XML schemas; otherwise false.

Exceptions

SamlSchemaValidationException

Thrown when the attempt to perform SAML XML schema validation fails.