src-resolve.4.2: Error resolving component. schéma XML
Bonjour,
J'ai écrit un schéma xml et je me retrouve face à l'erreur suivante :
Code:
1 2 3 4 5
| src-resolve.4.2: Error resolving component 'AppModule'. It was detected that 'AppModule' is in namespace
'http://www.w3.org/2001/XMLSchema', but components from this namespace are not referenceable from
schema document 'file:///C:/workspace/MartesProject/MyXMLSchema.xsd'. If this is the incorrect namespace,
perhaps the prefix of 'AppModule' needs to be changed. If this is the correct namespace, then an appropriate
'import' tag should be added to 'file:///C:/workspace/MartesProject/MyXMLSchema.xsd'. |
Voici un bout de code de mon fichier MyXMLSchema.xsd :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.example.org/MyXMLSchema"
xmlns:tns="http://www.example.org/MyXMLSchema"
elementFormDefault="qualified">
<element name="Application">
<complexType>
<sequence>
<element name="origin" type="string"/>
<element name="name" type="string"/>
<element name="appModule" type="AppModule"/>
</sequence>
</complexType>
</element>
<complexType name="AppModule" >
<sequence>
<element name="name" type="string"/>
<element name="appBehavior" type="AppBehavior" minOccurs="0"/>
<element name="AppInterface" type="AppCompInterface"/>
</sequence>
</complexType>
</schema> |
Je vous prie de bien vouloir m'aider, car je ne vois pas trop c'est quoi la source de l'erreur.
Merci d'avance.