et le message d'erreur que j'obtiens lorsque je veux valider le fichier XMLCitation:
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.008.001.02" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:SchemaLocation="urn:iso:std:iso:20022:tech:xsd:pain.008.001.02 PAIN.008.001.02.xsd">
dans PAIN.008.001.02Citation:
L'attribut «*{http://www.w3.org/2001/XMLSchema-instance}SchemaLocation*» n'est pas défini.
Et voici enfin l'objet que j'utilise pour validerCitation:
<xs:schema xmlns="urn:iso:std:iso:20022:tech:xsd:pain.008.001.02" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:iso:std:iso:20022:tech:xsd:pain.008.001.02" elementFormDefault="qualified">
Quelqu'un pourrait-il m'aiderCode:
1
2
3
4
5
6
7
8
9
10 xmldoc = COMate_CreateObject("Msxml2.DOMDocument.6.0") schemaCache = COMate_CreateObject("Msxml2.XMLSchemaCache.6.0"); SchemaCache\SetProperty("add( 'urn:iso:std:iso:20022:tech:xsd:pain.008.001.02','" +pain+"')" ) xmldoc\SetProperty("ResolveExternals = #False") xmldoc\SetProperty("schemas = " + Str(SchemaCache)+" As COMateObject") xmldoc\SetProperty("ValidateOnParse=#True") xmldoc\SetProperty("setProperty('MultipleErrorMessages',#True)") xmldoc\SetProperty("async=#False") xmldoc\Invoke("Load('" +sXML + "')")
Merci par avance