La validation de schéma XML: cvc-complexe-type.2.4.un

Je suis en train de valider mon document XML par rapport à mon schéma XML.

C'est mon schéma:

<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
  targetNamespace="http://cars.example.org/">
  <element name="cars">
    <complexType>
      <sequence minOccurs="0" maxOccurs="unbounded">
        <element name="brand" type="string"/>
      </sequence>
    </complexType>
  </element>
</schema>

et c'est mon document XML:

<?xml version="1.0" encoding="UTF-8"?>
<cars xmlns="http://cars.example.org/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://cars.example.org/cars.xsd">
  <brand>x</brand>
</cars>

Maintenant, quand je suis à la validation du document (via Eclipse), je reçois message suivant sur la ligne 4:

cvc-complex-type.2.4.a: Invalid content was found starting with element 'brand'. One of '{"":brand}' is expected.

Ce message n'a aucun sens :(. Et c'est très difficile (impossible?) pour google, la solution.

Merci pour votre aide.

OriginalL'auteur woky | 2011-09-20