Show / Hide Table of Contents

Interface ISamlSchemaValidator

Validates XML against the SAML XML schemas.

Namespace: ComponentSpace.Saml2.Utility
Assembly: ComponentSpace.Saml2.dll
Syntax
public interface ISamlSchemaValidator

Properties

Errors

Gets the list of XML schema errors.

Declaration
IList<string> Errors { get; }
Property Value
Type Description
System.Collections.Generic.IList<System.String>

The list of XML schema errors.

Warnings

Gets the list of XML schema warnings.

Declaration
IList<string> Warnings { get; }
Property Value
Type Description
System.Collections.Generic.IList<System.String>

The list of XML schema warnings.

Methods

Validate(XmlElement)

Validates the XML against the SAML XML schemas

Declaration
bool Validate(XmlElement xmlElement)
Parameters
Type Name Description
System.Xml.XmlElement xmlElement

The XML to validate.

Returns
Type Description
System.Boolean

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

Exceptions
Type Condition
SamlSchemaValidationException

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

In This Article
Back to top Copyright © ComponentSpace Pty Ltd 2017-2022. All rights reserved.