45
Validating an Authentication Request
<AuthnRequest xmlns="urn:oasis:names:tc:SAML:2.0:protocol"
                          ForceAuthn="true"
                          ProviderName="CarRentalInc.com"
                          ID="abe567de6"
                          Version="2.0"
                          IssueInstant="2005-01-31T11:58:00Z"
                          Destination="https://www.AirlineInc.com">
    <Subject xmlns="urn:oasis:names:tc:SAML:2.0:assertion">
        <NameID Format="urn:oasis:names:tc:1.1:nameid-format:emailAddress">
            j.doe@acompany.com
        </NameID>
    </Subject>
</AuthnRequest>
example02.saml.xml
<?xml version="1.0" encoding="US-ASCII"?>
<schema
    targetNamespace="urn:oasis:names:tc:SAML:2.0:assertion"
    xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
    xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
    xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
    elementFormDefault="unqualified"
    attributeFormDefault="unqualified"
    blockDefault="substitution"
    version="2.0">
    <import namespace="http://www.w3.org/2000/09/xmldsig#"
        schemaLocation="http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd"/>
    <import namespace="http://www.w3.org/2001/04/xmlenc#"
        schemaLocation="http://www.w3.org/TR/2002/REC-xmlenc-core-20021210/xenc-schema.xsd"/>
    <annotation>
        <documentation>
            Document identifier: saml-schema-assertion-2.0
            Location: http://docs.oasis-open.org/security/saml/v2.0/
            Revision history:
            V1.0 (November, 2002):
              Initial Standard Schema.
            V1.1 (September, 2003):
              Updates within the same V1.0 namespace.
            V2.0 (March, 2005):
              New assertion schema for SAML V2.0 namespace.
        </documentation>
    </annotation>
</simpleContent>
    </complexType>
    <complexType name="EncryptedElementType">
       
saml-schema-protocol-2.0.xsd
XML Schema
Validator
The request is syntactically correct!
See the example02.a folder
Note: the protocol schema imports the assertion schema