cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to recognize document as valid XSD. Check the selected category

christian_pichler
Participant
0 Kudos
1,378

Hi,

While loading the attached XSD using "External Definition" I am getting the error "Unable to convert imported document to WSDL Reason:  Unable to recognize document as valid XSDCheck the selected category".

Does anyone know how I can fix this problem? I also tried to delete the minoccurs = "0" because I have seen in other threads that this might solve the problem but it did not help.

Thank you very much for your help!

Kind Regards,

Christian

Accepted Solutions (0)

Answers (2)

Answers (2)

gagandeep_batra
Active Contributor
0 Kudos

Hi Pichler,

did u check the category u selected is xsd as below? and i cant download the file the u upload can u upload with only .txt file?

Regards

Gagan

christian_pichler
Participant
0 Kudos

Hi Gagan,

Thanks for your reply. I used "xsd" as category but it did not work. I just used the extension .txt to be able to upload the xsd file to this thread.

This is the content of the file we got from Royal Bank of Scotland (should be a standard file):

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.02" elementFormDefault="qualified" targetNamespace="urn:iso:std:iso:20022:tech:xsd:pain.001.001.02">
<xs:element name="Document" type="Document"/>
<xs:complexType name="AccountIdentification3Choice">
<xs:sequence>
  <xs:choice>
   <xs:element name="IBAN" type="IBANIdentifier"/>
   <xs:element name="BBAN" type="BBANIdentifier"/>
   <xs:element name="UPIC" type="UPICIdentifier"/>
   <xs:element name="PrtryAcct" type="SimpleIdentificationInformation2"/>
  </xs:choice>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="AddressType2Code">
<xs:restriction base="xs:string">
  <xs:enumeration value="ADDR"/>
  <xs:enumeration value="PBOX"/>
  <xs:enumeration value="HOME"/>
  <xs:enumeration value="BIZZ"/>
  <xs:enumeration value="MLTO"/>
  <xs:enumeration value="DLVY"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="AmountType2Choice">
<xs:sequence>
  <xs:choice>
   <xs:element name="InstdAmt" type="CurrencyAndAmount"/>
   <xs:element name="EqvtAmt" type="EquivalentAmount"/>
  </xs:choice>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="BBANIdentifier">
<xs:restriction base="xs:string">
  <xs:pattern value="[a-zA-Z0-9]{1,30}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="BEIIdentifier">
<xs:restriction base="xs:string">
  <xs:pattern value="[A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="BICIdentifier">
<xs:restriction base="xs:string">
  <xs:pattern value="[A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="BaseOneRate">
<xs:restriction base="xs:decimal">
  <xs:fractionDigits value="10"/>
  <xs:totalDigits value="11"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="BatchBookingIndicator">
<xs:restriction base="xs:boolean"/>
</xs:simpleType>
<xs:complexType name="BranchAndFinancialInstitutionIdentification3">
<xs:sequence>
  <xs:element name="FinInstnId" type="FinancialInstitutionIdentification5Choice"/>
  <xs:element name="BrnchId" type="BranchData" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="BranchData">
<xs:sequence>
  <xs:element name="Id" type="Max35Text" minOccurs="0" maxOccurs="1"/>
  <xs:element name="Nm" type="Max35Text" minOccurs="0" maxOccurs="1"/>
  <xs:element name="PstlAdr" type="PostalAddress1" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="CHIPSUniversalIdentifier">
<xs:restriction base="xs:string">
  <xs:pattern value="CH[0-9]{6,6}"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="CashAccount7">
<xs:sequence>
  <xs:element name="Id" type="AccountIdentification3Choice"/>
  <xs:element name="Tp" type="CashAccountType2" minOccurs="0" maxOccurs="1"/>
  <xs:element name="Ccy" type="CurrencyCode" minOccurs="0" maxOccurs="1"/>
  <xs:element name="Nm" type="Max70Text" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="CashAccountType2">
<xs:sequence>
  <xs:choice>
   <xs:element name="Cd" type="CashAccountType4Code"/>
   <xs:element name="Prtry" type="Max35Text"/>
  </xs:choice>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="CashAccountType4Code">
<xs:restriction base="xs:string">
  <xs:enumeration value="CASH"/>
  <xs:enumeration value="CHAR"/>
  <xs:enumeration value="COMM"/>
  <xs:enumeration value="TAXE"/>
  <xs:enumeration value="CISH"/>
  <xs:enumeration value="TRAS"/>
  <xs:enumeration value="SACC"/>
  <xs:enumeration value="CACC"/>
  <xs:enumeration value="SVGS"/>
  <xs:enumeration value="ONDP"/>
  <xs:enumeration value="MGLD"/>
  <xs:enumeration value="NREX"/>
  <xs:enumeration value="MOMA"/>
  <xs:enumeration value="LOAN"/>
  <xs:enumeration value="SLRY"/>
  <xs:enumeration value="ODFT"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ChargeBearerType1Code">
<xs:restriction base="xs:string">
  <xs:enumeration value="DEBT"/>
  <xs:enumeration value="CRED"/>
  <xs:enumeration value="SHAR"/>
  <xs:enumeration value="SLEV"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="Cheque5">
<xs:sequence>
  <xs:element name="ChqTp" type="ChequeType2Code" minOccurs="0" maxOccurs="1"/>
  <xs:element name="ChqNb" type="Max35Text" minOccurs="0" maxOccurs="1"/>
  <xs:element name="ChqFr" type="NameAndAddress3" minOccurs="0" maxOccurs="1"/>
  <xs:element name="DlvryMtd" type="ChequeDeliveryMethod1Choice" minOccurs="0" maxOccurs="1"/>
  <xs:element name="DlvrTo" type="NameAndAddress3" minOccurs="0" maxOccurs="1"/>
  <xs:element name="InstrPrty" type="Priority2Code" minOccurs="0" maxOccurs="1"/>
  <xs:element name="ChqMtrtyDt" type="ISODate" minOccurs="0" maxOccurs="1"/>
  <xs:element name="FrmsCd" type="Max35Text" minOccurs="0" maxOccurs="1"/>
  <xs:element name="MemoFld" type="Max35Text" minOccurs="0" maxOccurs="1"/>
  <xs:element name="RgnlClrZone" type="Max35Text" minOccurs="0" maxOccurs="1"/>
  <xs:element name="PrtLctn" type="Max35Text" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="ChequeDelivery1Code">
<xs:restriction base="xs:string">
  <xs:enumeration value="MLDB"/>
  <xs:enumeration value="MLCD"/>
  <xs:enumeration value="MLFA"/>
  <xs:enumeration value="CRDB"/>
  <xs:enumeration value="CRCD"/>
  <xs:enumeration value="CRFA"/>
  <xs:enumeration value="PUDB"/>
  <xs:enumeration value="PUCD"/>
  <xs:enumeration value="PUFA"/>
  <xs:enumeration value="RGDB"/>
  <xs:enumeration value="RGCD"/>
  <xs:enumeration value="RGFA"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="ChequeDeliveryMethod1Choice">
<xs:sequence>
  <xs:choice>
   <xs:element name="Cd" type="ChequeDelivery1Code"/>
   <xs:element name="Prtry" type="Max35Text"/>
  </xs:choice>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="ChequeType2Code">
<xs:restriction base="xs:string">
  <xs:enumeration value="CCHQ"/>
  <xs:enumeration value="CCCH"/>
  <xs:enumeration value="BCHQ"/>
  <xs:enumeration value="DRFT"/>
  <xs:enumeration value="ELDR"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ClearingChannel2Code">
<xs:restriction base="xs:string">
  <xs:enumeration value="RTGS"/>
  <xs:enumeration value="RTNS"/>
  <xs:enumeration value="MPNS"/>
  <xs:enumeration value="BOOK"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="ClearingSystemMemberIdentification3Choice">
<xs:sequence>
  <xs:choice>
   <xs:element name="Id" type="ExternalClearingSystemMemberCode"/>
   <xs:element name="Prtry" type="Max35Text"/>
  </xs:choice>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="CountryCode">
<xs:restriction base="xs:string">
  <xs:pattern value="[A-Z]{2,2}"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="CreditTransferTransactionInformation1">
<xs:sequence>
  <xs:element name="PmtId" type="PaymentIdentification1"/>
  <xs:element name="PmtTpInf" type="PaymentTypeInformation1" minOccurs="0" maxOccurs="1"/>
  <xs:element name="Amt" type="AmountType2Choice"/>
  <xs:element name="XchgRateInf" type="ExchangeRateInformation1" minOccurs="0" maxOccurs="1"/>
  <xs:element name="ChrgBr" type="ChargeBearerType1Code" minOccurs="0" maxOccurs="1"/>
  <xs:element name="ChqInstr" type="Cheque5" minOccurs="0" maxOccurs="1"/>
  <xs:element name="UltmtDbtr" type="PartyIdentification8" minOccurs="0" maxOccurs="1"/>
  <xs:element name="IntrmyAgt1" type="BranchAndFinancialInstitutionIdentification3" minOccurs="0" maxOccurs="1"/>
  <xs:element name="IntrmyAgt1Acct" type="CashAccount7" minOccurs="0" maxOccurs="1"/>
  <xs:element name="IntrmyAgt2" type="BranchAndFinancialInstitutionIdentification3" minOccurs="0" maxOccurs="1"/>
  <xs:element name="IntrmyAgt2Acct" type="CashAccount7" minOccurs="0" maxOccurs="1"/>
  <xs:element name="IntrmyAgt3" type="BranchAndFinancialInstitutionIdentification3" minOccurs="0" maxOccurs="1"/>
  <xs:element name="IntrmyAgt3Acct" type="CashAccount7" minOccurs="0" maxOccurs="1"/>
  <xs:element name="CdtrAgt" type="BranchAndFinancialInstitutionIdentification3" minOccurs="0" maxOccurs="1"/>
  <xs:element name="CdtrAgtAcct" type="CashAccount7" minOccurs="0" maxOccurs="1"/>
  <xs:element name="Cdtr" type="PartyIdentification8" minOccurs="0" maxOccurs="1"/>
  <xs:element name="CdtrAcct" type="CashAccount7" minOccurs="0" maxOccurs="1"/>
  <xs:element name="UltmtCdtr" type="PartyIdentification8" minOccurs="0" maxOccurs="1"/>
  <xs:element name="InstrForCdtrAgt" type="InstructionForCreditorAgent1" minOccurs="0" maxOccurs="unbounded"/>
  <xs:element name="InstrForDbtrAgt" type="Max140Text" minOccurs="0" maxOccurs="1"/>
  <xs:element name="Purp" type="Purpose1Choice" minOccurs="0" maxOccurs="1"/>
  <xs:element name="RgltryRptg" type="RegulatoryReporting2" minOccurs="0" maxOccurs="10"/>
  <xs:element name="Tax" type="TaxInformation2" minOccurs="0" maxOccurs="1"/>
  <xs:element name="RltdRmtInf" type="RemittanceLocation1" minOccurs="0" maxOccurs="10"/>
  <xs:element name="RmtInf" type="RemittanceInformation1" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="CreditorReferenceInformation1">
<xs:sequence>
  <xs:element name="CdtrRefTp" type="CreditorReferenceType1" minOccurs="0" maxOccurs="1"/>
  <xs:element name="CdtrRef" type="Max35Text" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="CreditorReferenceType1">
<xs:sequence>
  <xs:choice>
   <xs:element name="Cd" type="DocumentType3Code"/>
   <xs:element name="Prtry" type="Max35Text"/>
  </xs:choice>
  <xs:element name="Issr" type="Max35Text" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="CurrencyAndAmount_SimpleType">
<xs:restriction base="xs:decimal">
  <xs:minInclusive value="0"/>
  <xs:fractionDigits value="5"/>
  <xs:totalDigits value="18"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="CurrencyAndAmount">
<xs:simpleContent>
  <xs:extension base="CurrencyAndAmount_SimpleType">
   <xs:attribute name="Ccy" type="CurrencyCode" use="required"/>
  </xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:simpleType name="CurrencyCode">
<xs:restriction base="xs:string">
  <xs:pattern value="[A-Z]{3,3}"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="DateAndPlaceOfBirth">
<xs:sequence>
  <xs:element name="BirthDt" type="ISODate"/>
  <xs:element name="PrvcOfBirth" type="Max35Text" minOccurs="0" maxOccurs="1"/>
  <xs:element name="CityOfBirth" type="Max35Text"/>
  <xs:element name="CtryOfBirth" type="CountryCode"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="DecimalNumber">
<xs:restriction base="xs:decimal">
  <xs:fractionDigits value="17"/>
  <xs:totalDigits value="18"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="Document">
<xs:sequence>
  <xs:element name="pain.001.001.02" type="pain.001.001.02"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="DocumentType2Code">
<xs:restriction base="xs:string">
  <xs:enumeration value="MSIN"/>
  <xs:enumeration value="CNFA"/>
  <xs:enumeration value="DNFA"/>
  <xs:enumeration value="CINV"/>
  <xs:enumeration value="CREN"/>
  <xs:enumeration value="DEBN"/>
  <xs:enumeration value="HIRI"/>
  <xs:enumeration value="SBIN"/>
  <xs:enumeration value="CMCN"/>
  <xs:enumeration value="SOAC"/>
  <xs:enumeration value="DISP"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="DocumentType3Code">
<xs:restriction base="xs:string">
  <xs:enumeration value="RADM"/>
  <xs:enumeration value="RPIN"/>
  <xs:enumeration value="FXDR"/>
  <xs:enumeration value="DISP"/>
  <xs:enumeration value="PUOR"/>
  <xs:enumeration value="SCOR"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="DunsIdentifier">
<xs:restriction base="xs:string">
  <xs:pattern value="[0-9]{9,9}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="EANGLNIdentifier">
<xs:restriction base="xs:string">
  <xs:pattern value="[0-9]{13,13}"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="EquivalentAmount">
<xs:sequence>
  <xs:element name="Amt" type="CurrencyAndAmount"/>
  <xs:element name="CcyOfTrf" type="CurrencyCode"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ExchangeRateInformation1">
<xs:sequence>
  <xs:element name="XchgRate" type="BaseOneRate" minOccurs="0" maxOccurs="1"/>
  <xs:element name="RateTp" type="ExchangeRateType1Code" minOccurs="0" maxOccurs="1"/>
  <xs:element name="CtrctId" type="Max35Text" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="ExchangeRateType1Code">
<xs:restriction base="xs:string">
  <xs:enumeration value="SPOT"/>
  <xs:enumeration value="SALE"/>
  <xs:enumeration value="AGRD"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ExternalClearingSystemMemberCode">
<xs:restriction base="xs:string">
  <xs:minLength value="1"/>
  <xs:maxLength value="35"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ExternalLocalInstrumentCode">
<xs:restriction base="xs:string">
  <xs:minLength value="1"/>
  <xs:maxLength value="35"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ExternalPurposeCode">
<xs:restriction base="xs:string">
  <xs:minLength value="1"/>
  <xs:maxLength value="35"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="FinancialInstitutionIdentification3">
<xs:sequence>
  <xs:element name="BIC" type="BICIdentifier" minOccurs="0" maxOccurs="1"/>
  <xs:element name="ClrSysMmbId" type="ClearingSystemMemberIdentification3Choice" minOccurs="0" maxOccurs="1"/>
  <xs:element name="Nm" type="Max70Text" minOccurs="0" maxOccurs="1"/>
  <xs:element name="PstlAdr" type="PostalAddress1" minOccurs="0" maxOccurs="1"/>
  <xs:element name="PrtryId" type="GenericIdentification3" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="FinancialInstitutionIdentification5Choice">
<xs:sequence>
  <xs:choice>
   <xs:element name="BIC" type="BICIdentifier"/>
   <xs:element name="ClrSysMmbId" type="ClearingSystemMemberIdentification3Choice"/>
   <xs:element name="NmAndAdr" type="NameAndAddress7"/>
   <xs:element name="PrtryId" type="GenericIdentification3"/>
   <xs:element name="CmbndId" type="FinancialInstitutionIdentification3"/>
  </xs:choice>
</xs:sequence>
</xs:complexType>
<xs:complexType name="GenericIdentification3">
<xs:sequence>
  <xs:element name="Id" type="Max35Text"/>
  <xs:element name="Issr" type="Max35Text" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="GenericIdentification4">
<xs:sequence>
  <xs:element name="Id" type="Max35Text"/>
  <xs:element name="IdTp" type="Max35Text" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="GroupHeader1">
<xs:sequence>
  <xs:element name="MsgId" type="Max35Text"/>
  <xs:element name="CreDtTm" type="ISODateTime"/>
  <xs:element name="Authstn" type="Max128Text" minOccurs="0" maxOccurs="2"/>
  <xs:element name="BtchBookg" type="BatchBookingIndicator" minOccurs="0" maxOccurs="1"/>
  <xs:element name="NbOfTxs" type="Max15NumericText"/>
  <xs:element name="CtrlSum" type="DecimalNumber" minOccurs="0" maxOccurs="1"/>
  <xs:element name="Grpg" type="Grouping1Code"/>
  <xs:element name="InitgPty" type="PartyIdentification8"/>
  <xs:element name="FwdgAgt" type="BranchAndFinancialInstitutionIdentification3" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="Grouping1Code">
<xs:restriction base="xs:string">
  <xs:enumeration value="SNGL"/>
  <xs:enumeration value="GRPD"/>
  <xs:enumeration value="MIXD"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="IBANIdentifier">
<xs:restriction base="xs:string">
  <xs:pattern value="[a-zA-Z]{2,2}[0-9]{2,2}[a-zA-Z0-9]{1,30}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="IBEIIdentifier">
<xs:restriction base="xs:string">
  <xs:pattern value="[A-Z]{2,2}[B-DF-HJ-NP-TV-XZ0-9]{7,7}[0-9]{1,1}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ISODate">
<xs:restriction base="xs:date"/>
</xs:simpleType>
<xs:simpleType name="ISODateTime">
<xs:restriction base="xs:dateTime"/>
</xs:simpleType>
<xs:simpleType name="Instruction3Code">
<xs:restriction base="xs:string">
  <xs:enumeration value="CHQB"/>
  <xs:enumeration value="HOLD"/>
  <xs:enumeration value="PHOB"/>
  <xs:enumeration value="TELB"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="InstructionForCreditorAgent1">
<xs:sequence>
  <xs:element name="Cd" type="Instruction3Code" minOccurs="0" maxOccurs="1"/>
  <xs:element name="InstrInf" type="Max140Text" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="LocalInstrument1Choice">
<xs:sequence>
  <xs:choice>
   <xs:element name="Cd" type="ExternalLocalInstrumentCode"/>
   <xs:element name="Prtry" type="Max35Text"/>
  </xs:choice>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="Max128Text">
<xs:restriction base="xs:string">
  <xs:minLength value="1"/>
  <xs:maxLength value="128"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="Max140Text">
<xs:restriction base="xs:string">
  <xs:minLength value="1"/>
  <xs:maxLength value="140"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="Max15NumericText">
<xs:restriction base="xs:string">
  <xs:pattern value="[0-9]{1,15}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="Max16Text">
<xs:restriction base="xs:string">
  <xs:minLength value="1"/>
  <xs:maxLength value="16"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="Max250Text">
<xs:restriction base="xs:string">
  <xs:minLength value="1"/>
  <xs:maxLength value="250"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="Max256Text">
<xs:restriction base="xs:string">
  <xs:minLength value="1"/>
  <xs:maxLength value="256"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="Max34Text">
<xs:restriction base="xs:string">
  <xs:minLength value="1"/>
  <xs:maxLength value="34"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="Max35Text">
<xs:restriction base="xs:string">
  <xs:minLength value="1"/>
  <xs:maxLength value="35"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="Max3Text">
<xs:restriction base="xs:string">
  <xs:minLength value="1"/>
  <xs:maxLength value="3"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="Max70Text">
<xs:restriction base="xs:string">
  <xs:minLength value="1"/>
  <xs:maxLength value="70"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="NameAndAddress3">
<xs:sequence>
  <xs:element name="Nm" type="Max70Text"/>
  <xs:element name="Adr" type="PostalAddress1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="NameAndAddress7">
<xs:sequence>
  <xs:element name="Nm" type="Max70Text"/>
  <xs:element name="PstlAdr" type="PostalAddress1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="OrganisationIdentification2">
<xs:sequence>
  <xs:element name="BIC" type="BICIdentifier" minOccurs="0" maxOccurs="1"/>
  <xs:element name="IBEI" type="IBEIIdentifier" minOccurs="0" maxOccurs="1"/>
  <xs:element name="BEI" type="BEIIdentifier" minOccurs="0" maxOccurs="1"/>
  <xs:element name="EANGLN" type="EANGLNIdentifier" minOccurs="0" maxOccurs="1"/>
  <xs:element name="USCHU" type="CHIPSUniversalIdentifier" minOccurs="0" maxOccurs="1"/>
  <xs:element name="DUNS" type="DunsIdentifier" minOccurs="0" maxOccurs="1"/>
  <xs:element name="BkPtyId" type="Max35Text" minOccurs="0" maxOccurs="1"/>
  <xs:element name="TaxIdNb" type="Max35Text" minOccurs="0" maxOccurs="1"/>
  <xs:element name="PrtryId" type="GenericIdentification3" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Party2Choice">
<xs:sequence>
  <xs:choice>
   <xs:element name="OrgId" type="OrganisationIdentification2"/>
   <xs:element name="PrvtId" type="PersonIdentification3" minOccurs="1" maxOccurs="4"/>
  </xs:choice>
</xs:sequence>
</xs:complexType>
<xs:complexType name="PartyIdentification8">
<xs:sequence>
  <xs:element name="Nm" type="Max70Text" minOccurs="0" maxOccurs="1"/>
  <xs:element name="PstlAdr" type="PostalAddress1" minOccurs="0" maxOccurs="1"/>
  <xs:element name="Id" type="Party2Choice" minOccurs="0" maxOccurs="1"/>
  <xs:element name="CtryOfRes" type="CountryCode" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="PaymentCategoryPurpose1Code">
<xs:restriction base="xs:string">
  <xs:enumeration value="CORT"/>
  <xs:enumeration value="SALA"/>
  <xs:enumeration value="TREA"/>
  <xs:enumeration value="CASH"/>
  <xs:enumeration value="DIVI"/>
  <xs:enumeration value="GOVT"/>
  <xs:enumeration value="INTE"/>
  <xs:enumeration value="LOAN"/>
  <xs:enumeration value="PENS"/>
  <xs:enumeration value="SECU"/>
  <xs:enumeration value="SSBE"/>
  <xs:enumeration value="SUPP"/>
  <xs:enumeration value="TAXS"/>
  <xs:enumeration value="TRAD"/>
  <xs:enumeration value="VATX"/>
  <xs:enumeration value="HEDG"/>
  <xs:enumeration value="INTC"/>
  <xs:enumeration value="WHLD"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="PaymentIdentification1">
<xs:sequence>
  <xs:element name="InstrId" type="Max35Text" minOccurs="0" maxOccurs="1"/>
  <xs:element name="EndToEndId" type="Max35Text"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="PaymentInstructionInformation1">
<xs:sequence>
  <xs:element name="PmtInfId" type="Max35Text" minOccurs="0" maxOccurs="1"/>
  <xs:element name="PmtMtd" type="PaymentMethod3Code"/>
  <xs:element name="PmtTpInf" type="PaymentTypeInformation1" minOccurs="0" maxOccurs="1"/>
  <xs:element name="ReqdExctnDt" type="ISODate"/>
  <xs:element name="PoolgAdjstmntDt" type="ISODate" minOccurs="0" maxOccurs="1"/>
  <xs:element name="Dbtr" type="PartyIdentification8"/>
  <xs:element name="DbtrAcct" type="CashAccount7"/>
  <xs:element name="DbtrAgt" type="BranchAndFinancialInstitutionIdentification3"/>
  <xs:element name="DbtrAgtAcct" type="CashAccount7" minOccurs="0" maxOccurs="1"/>
  <xs:element name="UltmtDbtr" type="PartyIdentification8" minOccurs="0" maxOccurs="1"/>
  <xs:element name="ChrgBr" type="ChargeBearerType1Code" minOccurs="0" maxOccurs="1"/>
  <xs:element name="ChrgsAcct" type="CashAccount7" minOccurs="0" maxOccurs="1"/>
  <xs:element name="ChrgsAcctAgt" type="BranchAndFinancialInstitutionIdentification3" minOccurs="0" maxOccurs="1"/>
  <xs:element name="CdtTrfTxInf" type="CreditTransferTransactionInformation1" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="PaymentMethod3Code">
<xs:restriction base="xs:string">
  <xs:enumeration value="CHK"/>
  <xs:enumeration value="TRF"/>
  <xs:enumeration value="TRA"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="PaymentTypeInformation1">
<xs:sequence>
  <xs:element name="InstrPrty" type="Priority2Code" minOccurs="0" maxOccurs="1"/>
  <xs:choice>
   <xs:element name="SvcLvl" type="ServiceLevel2Choice" minOccurs="0" maxOccurs="1"/>
   <xs:element name="ClrChanl" type="ClearingChannel2Code" minOccurs="0" maxOccurs="1"/>
  </xs:choice>
  <xs:element name="LclInstrm" type="LocalInstrument1Choice" minOccurs="0" maxOccurs="1"/>
  <xs:element name="CtgyPurp" type="PaymentCategoryPurpose1Code" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="PercentageRate">
<xs:restriction base="xs:decimal">
  <xs:fractionDigits value="10"/>
  <xs:totalDigits value="11"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="PersonIdentification3">
<xs:sequence>
  <xs:choice>
   <xs:element name="DrvrsLicNb" type="Max35Text"/>
   <xs:element name="CstmrNb" type="Max35Text"/>
   <xs:element name="SclSctyNb" type="Max35Text"/>
   <xs:element name="AlnRegnNb" type="Max35Text"/>
   <xs:element name="PsptNb" type="Max35Text"/>
   <xs:element name="TaxIdNb" type="Max35Text"/>
   <xs:element name="IdntyCardNb" type="Max35Text"/>
   <xs:element name="MplyrIdNb" type="Max35Text"/>
   <xs:element name="DtAndPlcOfBirth" type="DateAndPlaceOfBirth"/>
   <xs:element name="OthrId" type="GenericIdentification4"/>
  </xs:choice>
  <xs:element name="Issr" type="Max35Text" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="PostalAddress1">
<xs:sequence>
  <xs:element name="AdrTp" type="AddressType2Code" minOccurs="0" maxOccurs="1"/>
  <xs:element name="AdrLine" type="Max70Text" minOccurs="0" maxOccurs="5"/>
  <xs:element name="StrtNm" type="Max70Text" minOccurs="0" maxOccurs="1"/>
  <xs:element name="BldgNb" type="Max16Text" minOccurs="0" maxOccurs="1"/>
  <xs:element name="PstCd" type="Max16Text" minOccurs="0" maxOccurs="1"/>
  <xs:element name="TwnNm" type="Max35Text" minOccurs="0" maxOccurs="1"/>
  <xs:element name="CtrySubDvsn" type="Max35Text" minOccurs="0" maxOccurs="1"/>
  <xs:element name="Ctry" type="CountryCode"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="Priority2Code">
<xs:restriction base="xs:string">
  <xs:enumeration value="HIGH"/>
  <xs:enumeration value="NORM"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="Purpose1Choice">
<xs:sequence>
  <xs:choice>
   <xs:element name="Cd" type="ExternalPurposeCode"/>
   <xs:element name="Prtry" type="Max35Text"/>
  </xs:choice>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ReferredDocumentAmount1Choice">
<xs:sequence>
  <xs:choice>
   <xs:element name="DuePyblAmt" type="CurrencyAndAmount"/>
   <xs:element name="DscntApldAmt" type="CurrencyAndAmount"/>
   <xs:element name="RmtdAmt" type="CurrencyAndAmount"/>
   <xs:element name="CdtNoteAmt" type="CurrencyAndAmount"/>
   <xs:element name="TaxAmt" type="CurrencyAndAmount"/>
  </xs:choice>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ReferredDocumentInformation1">
<xs:sequence>
  <xs:element name="RfrdDocTp" type="ReferredDocumentType1" minOccurs="0" maxOccurs="1"/>
  <xs:element name="RfrdDocNb" type="Max35Text" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ReferredDocumentType1">
<xs:sequence>
  <xs:choice>
   <xs:element name="Cd" type="DocumentType2Code"/>
   <xs:element name="Prtry" type="Max35Text"/>
  </xs:choice>
  <xs:element name="Issr" type="Max35Text" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="RegulatoryAuthority">
<xs:sequence>
  <xs:element name="AuthrtyNm" type="Max70Text" minOccurs="0" maxOccurs="1"/>
  <xs:element name="AuthrtyCtry" type="CountryCode" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="RegulatoryReporting2">
<xs:sequence>
  <xs:element name="DbtCdtRptgInd" type="RegulatoryReportingType1Code" minOccurs="0" maxOccurs="1"/>
  <xs:element name="Authrty" type="RegulatoryAuthority" minOccurs="0" maxOccurs="1"/>
  <xs:element name="RgltryDtls" type="StructuredRegulatoryReporting2" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="RegulatoryReportingType1Code">
<xs:restriction base="xs:string">
  <xs:enumeration value="CRED"/>
  <xs:enumeration value="DEBT"/>
  <xs:enumeration value="BOTH"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="RemittanceInformation1">
<xs:sequence>
  <xs:element name="Ustrd" type="Max140Text" minOccurs="0" maxOccurs="unbounded"/>
  <xs:element name="Strd" type="StructuredRemittanceInformation6" minOccurs="0" maxOccurs="unbounded"/>
  <xs:element name="AabAdvice" type="Max250Text" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="RemittanceLocation1">
<xs:sequence>
  <xs:element name="RmtId" type="Max35Text" minOccurs="0" maxOccurs="1"/>
  <xs:element name="RmtLctnMtd" type="RemittanceLocationMethod1Code" minOccurs="0" maxOccurs="1"/>
  <xs:element name="RmtLctnElctrncAdr" type="Max256Text" minOccurs="0" maxOccurs="1"/>
  <xs:element name="RmtLctnPstlAdr" type="NameAndAddress3" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="RemittanceLocationMethod1Code">
<xs:restriction base="xs:string">
  <xs:enumeration value="FAXI"/>
  <xs:enumeration value="EDIC"/>
  <xs:enumeration value="URID"/>
  <xs:enumeration value="EMAL"/>
  <xs:enumeration value="POST"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ServiceLevel1Code">
<xs:restriction base="xs:string">
  <xs:enumeration value="SEPA"/>
  <xs:enumeration value="SDVA"/>
  <xs:enumeration value="PRPT"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="ServiceLevel2Choice">
<xs:sequence>
  <xs:choice>
   <xs:element name="Cd" type="ServiceLevel1Code"/>
   <xs:element name="Prtry" type="Max35Text"/>
  </xs:choice>
</xs:sequence>
</xs:complexType>
<xs:complexType name="SimpleIdentificationInformation2">
<xs:sequence>
  <xs:element name="Id" type="Max34Text"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="StructuredRegulatoryReporting2">
<xs:sequence>
  <xs:element name="Cd" type="Max3Text" minOccurs="0" maxOccurs="1"/>
  <xs:element name="Amt" type="CurrencyAndAmount" minOccurs="0" maxOccurs="1"/>
  <xs:element name="Inf" type="Max35Text" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="StructuredRemittanceInformation6">
<xs:sequence>
  <xs:element name="RfrdDocInf" type="ReferredDocumentInformation1" minOccurs="0" maxOccurs="1"/>
  <xs:element name="RfrdDocRltdDt" type="ISODate" minOccurs="0" maxOccurs="1"/>
  <xs:element name="RfrdDocAmt" type="ReferredDocumentAmount1Choice" minOccurs="0" maxOccurs="unbounded"/>
  <xs:element name="CdtrRefInf" type="CreditorReferenceInformation1" minOccurs="0" maxOccurs="1"/>
  <xs:element name="Invcr" type="PartyIdentification8" minOccurs="0" maxOccurs="1"/>
  <xs:element name="Invcee" type="PartyIdentification8" minOccurs="0" maxOccurs="1"/>
  <xs:element name="AddtlRmtInf" type="Max140Text" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="TaxDetails">
<xs:sequence>
  <xs:element name="CertId" type="Max35Text" minOccurs="0" maxOccurs="1"/>
  <xs:element name="TaxTp" type="TaxType" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="TaxInformation2">
<xs:sequence>
  <xs:element name="CdtrTaxId" type="Max35Text" minOccurs="0" maxOccurs="1"/>
  <xs:element name="CdtrTaxTp" type="Max35Text" minOccurs="0" maxOccurs="1"/>
  <xs:element name="DbtrTaxId" type="Max35Text" minOccurs="0" maxOccurs="1"/>
  <xs:element name="TaxRefNb" type="Max140Text" minOccurs="0" maxOccurs="1"/>
  <xs:element name="TtlTaxblBaseAmt" type="CurrencyAndAmount" minOccurs="0" maxOccurs="1"/>
  <xs:element name="TtlTaxAmt" type="CurrencyAndAmount" minOccurs="0" maxOccurs="1"/>
  <xs:element name="TaxDt" type="ISODate" minOccurs="0" maxOccurs="1"/>
  <xs:element name="TaxTpInf" type="TaxDetails" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="TaxType">
<xs:sequence>
  <xs:element name="CtgyDesc" type="Max35Text" minOccurs="0" maxOccurs="1"/>
  <xs:element name="Rate" type="PercentageRate" minOccurs="0" maxOccurs="1"/>
  <xs:element name="TaxblBaseAmt" type="CurrencyAndAmount" minOccurs="0" maxOccurs="1"/>
  <xs:element name="Amt" type="CurrencyAndAmount" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="UPICIdentifier">
<xs:restriction base="xs:string">
  <xs:pattern value="[0-9]{8,17}"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="pain.001.001.02">
<xs:sequence>
  <xs:element name="GrpHdr" type="GroupHeader1"/>
  <xs:element name="PmtInf" type="PaymentInstructionInformation1" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>

<!-- ggol info -->

<xs:element name="cust_payment_header">
  <xs:complexType>
   <xs:sequence>
    <xs:element ref="sender_id"/>
    <xs:element ref="receiver_id"/>
    <xs:element ref="file_creation_date"/>
    <xs:element ref="file_creation_time"/>
    <xs:element ref="transaction_count" minOccurs="0"/>
    <xs:element ref="file_ref_nu"/>
    <xs:element ref="format"/>
   </xs:sequence>
  </xs:complexType>
</xs:element>
<xs:element name="file_creation_date" type="xs:int"/>
<xs:element name="file_creation_time" type="xs:int"/>
<xs:element name="file_ref_nu" type="xs:int"/>
<xs:element name="format">
  <xs:simpleType>
   <xs:restriction base="xs:string">
    <xs:enumeration value="PEXR"/>
    <xs:enumeration value="EDIFACT"/>
    <xs:enumeration value="X12"/>
    <xs:enumeration value="CLIEOP03"/>
    <xs:enumeration value="XML_PAYMENT"/>
    <xs:enumeration value="BTL91"/>
    <xs:enumeration value="FLATFILE"/>
    <xs:enumeration value="BELI1"/>
    <xs:enumeration value="BELI3"/>
    <xs:enumeration value="BELI4"/>
    <xs:enumeration value="NORMA19"/>
    <xs:enumeration value="NORMA34"/>
    <xs:enumeration value="NORMA58"/>
    <xs:enumeration value="ISO XML"/>
   </xs:restriction>
  </xs:simpleType>
</xs:element>
<xs:element name="ggol_xml_payment">
  <xs:complexType>
   <xs:sequence>
    <xs:element ref="cust_payment_header"/>
    <xs:choice>
     <xs:element ref="payment"/>
     <xs:element name="xml_payment" type="xml_payment"/>
    </xs:choice>
   
   </xs:sequence>
  </xs:complexType>
</xs:element>
<xs:element name="payment" type="xs:string"/>
<xs:element name="receiver_id">
  <xs:simpleType>
   <xs:restriction base="xs:string">
    <xs:enumeration value="ABNANL2A"/>
   </xs:restriction>
  </xs:simpleType>
</xs:element>
<xs:element name="sender_id" type="xs:string"/>
<xs:element name="transaction_count" type="xs:int"/>
<xs:complexType name="xml_payment">
  <xs:sequence>
   <xs:element name="pain.001.001.02" type="pain.001.001.02"/>
  </xs:sequence>
</xs:complexType>
</xs:schema>

Kind Regards,

Christian

robertot4s
Active Participant
0 Kudos

Hi,

If you check the XSD imported (Option External Definition -> Check) you will get next error:

Name of '/schema/element("ggol_xml_payment")/complexType/sequence/element("xml_payment")' starts with 'xml'

Regards,

Roberto

christian_pichler
Participant
0 Kudos

Hi Roberto,

Thanks for your reply! If this error message occurs I have to rename the element from "xml_payment" to "payment". This was reported from another user in a different thread. I will try if this works.

Kind Regards,

Christian

robertot4s
Active Participant
0 Kudos

Hi,

Review your XSD, maybe there is an element not permitted is SAP PI:

http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00a9a425-1769-2a10-9196-bd8eeed72...

Regards,

Roberto