et le message d'erreur que j'obtiens lorsque je veux valider le fichier XML<Document xmlns="urn:iso:std:iso:20022:techsd:pain.008.001.02" xmlnssi="http://www.w3.org/2001/XMLSchema-instance" xsi:SchemaLocation="urn:iso:std:iso:20022:techsd:pain.008.001.02 PAIN.008.001.02.xsd">
dans PAIN.008.001.02L'attribut «*{http://www.w3.org/2001/XMLSchema-instance}SchemaLocation*» n'est pas défini.
Et voici enfin l'objet que j'utilise pour valider<xs:schema xmlns="urn:iso:std:iso:20022:techsd:pain.008.001.02" xmlnss="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:iso:std:iso:20022:techsd:pain.008.001.02" elementFormDefault="qualified">
Quelqu'un pourrait-il m'aider
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
Partager