validation d'un xml a partir d'un xsd
bonjour,
j'ai des erreur pour valider mon fichier xml a partir du schema xsd, mon soucis c'est que j'ai du mal à cerner la notion de namespace, je rejoute que mon XSD et joint a mon projet, je développe sous windev
voila l'entete de mon xsd:
Code:
1 2 3 4 5 6 7 8 9 10 11
| <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--Generated by SWIFTStandards Workstation (build:R6.1.0.2) on 2009 Jan 08 17:30:53-->
<xs:schema xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.03" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="urn:iso:std:iso:20022:tech:xsd:pain.001.001.03">
<xs:element name="Document" type="Document"/>
<xs:complexType name="AccountIdentification4Choice">
<xs:sequence>
<xs:choice>
<xs:element name="IBAN" type="IBAN2007Identifier"/>
<xs:element name="Othr" type="GenericAccountIdentification1"/>
</xs:choice>
</xs:sequence> |
début de mon xml:
Code:
1 2 3 4 5 6 7 8 9 10
| <?xml version="1.0" encoding="UTF-8" ?>
- <Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.03" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <CstmrCdtTrfInitn>
- <GrpHdr>
<MsgId>DE DIETRICH THERSOGEFRPP2010091</MsgId>
<CreDtTm>2011-04-08T22:07:06.000</CreDtTm>
<NbOfTxs>1</NbOfTxs>
<CtrlSum>1500.00</CtrlSum>
- <InitgPty>
<Nm>DE DIETRICH THERMIQUE</Nm> |
l'erreur que le system m'envoie:
Element 'CstmrCdtTrfInitn': this element is not excpected. Excpected is ({urn:iso:std:iso:20022:tech:xsd:pain.001.001.03}CstmrCdtTrfInitn)
j'ai vraiment besoin d'aide, merci d'avance..