Article View: fr.comp.text.xml
Article #9004Validation d'un XML � partir d'un schema XSD.
From: S�bastien FUSILIER
Date: Wed, 20 Jun 2001 10:09
Date: Wed, 20 Jun 2001 10:09
20 lines
1680 bytes
1680 bytes
parser utilis�: msxml4
Je defini dans le schema XSD l' element suivant:
<xsd:element name="Number_Of_Lights" default="5" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:unsignedShort">
<xsd:maxInclusive value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
Quand j'insere un string ou un entier > 10 dans le fichier XML et que je
valide le document, j'ai la m�me erreur qui est remont�:
-1072897660 The element: 'Number_Of_Lights' has an invalid value according
to its data type.
Est-il possible de connaitre exactement l'origine de l'erreur : mauvais type
ou mauvais range ?
Merci.
Technical Details
Message-ID:
<hD_X6.4535$MQ4.6716437@nnrp4.proxad.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!193.251.151.101!opentransit.net!proxad.net!feeder2-1.proxad.net!nnrp4.proxad.net.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 114f60,53d480f31af67b03,start X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2001-06-20 08:42:40 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!193.251.151.101!opentransit.net!proxad.net!feeder2-1.proxad.net!nnrp4.proxad.net.POSTED!not-for-mail From: "S�bastien FUSILIER" <sebastien.fusilier@free.fr> Newsgroups: fr.comp.text.xml Subject: Validation d'un XML � partir d'un schema XSD. Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Message-ID: <hD_X6.4535$MQ4.6716437@nnrp4.proxad.net> Date: Wed, 20 Jun 2001 10:09:17 GMT NNTP-Posting-Host: 193.249.187.133 X-Complaints-To: abuse@proxad.net X-Trace: nnrp4.proxad.net 993031757 193.249.187.133 (Wed, 20 Jun 2001 12:09:17 CEST) NNTP-Posting-Date: Wed, 20 Jun 2001 12:09:17 CEST Organization: Guest of ProXad - France