Re: Pb validation Schéma libxml2

Eric van der Vlist <[email protected]>
Newsgroups gmane.text.xml.french.tech
Organization Dyomedea (http://dyomedea.com)
Message-ID <[email protected]>
Bonjour,
Le mercredi 22 mars 2006 à 11:40 +0100, [email protected] a écrit :
> Bonjour à tous,
> je suis confronté à un pb qui concerne la validation de mon schéma avec le
> parser de libxml2 ( je n'ai pas comparé avec d'autres).

Vous devriez comparer avec d'autres, l'implémentation W3C XML Schema de
libxml est très incomplète (si vous utilisez libxml, utilisez plutôt
RELAX NG pour la validation).

> Dans un type complexe, je déclare une séquence d'éléments ayant tous l'attribut
> minOccurs="0".
> 
> Dans mon fichier XML, je ne met aucun de ces éléments (qui ne sont pas
> obligatoires), et pourtant la validation me renvoit comme erreur l'absence de
> ces éléments.
> 
> Où est mon erreur ?

D'après les éléments que vous donnez, il ne devrait pas y avoir
d'erreur.

Cordialement,

Eric van der Vlist

-- 
GPG-PGP: 2A528005
If you have a XML document, you have its schema.
                                                  http://examplotron.org
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(ISO) RELAX NG   ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------


-- Attached file included as plaintext by Ecartis --

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQBEISqRDvn+ZCpSgAURAihjAJ9Nzt0SFTNk3I2HhoTepblxctyFPgCfVgWk
3kN80UFWv9HmMqm72hBtDL8=
=inK8
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.