xmlschema.validators.exceptions.XMLSchemaChildrenValidationError: failed validating <Element '{urn:iso:std:iso:20022:tech:xsd:pain.001.001.03}Document' at 0x101f3d188> with XsdGroup(model='sequence', occurs=[1, 1]):
Reason: Unexpected child with tag '{urn:iso:std:iso:20022:tech:xsd:pain.001.001.03}CstmrDrctDbtInitn' at position 1. Tag 'CstmrCdtTrfInitn' expected.
Schema:
<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema" name="Document">
<xs:sequence>
<xs:element name="CstmrCdtTrfInitn" type="CustomerCreditTransferInitiationV03" />
</xs:sequence>
</xs:complexType>
With the example data from the README, I get an
Can you guess what's going wrong?