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
Warnings
Gets the list of XML schema warnings.
IList<string> Warnings { get; }
Property Value
Methods
Validate(XmlElement)
Validates the XML against the SAML XML schemas
bool Validate(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe XML to validate.
Returns
- bool
trueif the XML validates against the SAML XML schemas; otherwisefalse.
Exceptions
- SamlSchemaValidationException
Thrown when the attempt to perform SAML XML schema validation fails.