Article View: fr.comp.text.xml
Article #109Re: [newbie] Validation XSD/XML
From: Mickaël Wolff
Date: Fri, 09 Oct 2009 23:10
Date: Fri, 09 Oct 2009 23:10
23 lines
1989 bytes
1989 bytes
apolloj wrote: > <?xml version="1.0" encoding="utf8" ?> > <xsd:schema xmlns="" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > targetNamespace=""> > > <xsd:element name="description" type="xsd:string"/> [snip] > xmllint --noout --schema ./info.xsd ./info.xml > ./info.xml:2: element services-test: Schemas validity error : Element > 'services-test': No matching global declaration available. > ./info.xml fails to validate > Le message est pourtant clair. Tu as d�clar� que l'�l�ment service-test est une chaine, qui ne contient *pas* d'autrs �l�ments. Or, dans ton fichier XML, service-test contient d'autres �l�ments. Il faut donc que tu corrige ton XSD pour que la d�claration de l'�l�ment soit en accord avec ton besoin. -- Micka�l Wolff aka Lupus Michaelis http://lupusmic.org
Technical Details
Message-ID:
<4acfc485$0$9354$426a74cc@news.free.fr>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!feeder.erje.net!newsfeed.straub-nv.de!proxad.net!feeder1-2.proxad.net!cleanfeed3-b.proxad.net!nnrp11-2.free.fr!not-for-mailReferences:
<4acfbdd9$0$31424$426a34cc@news.free.fr>Show Full Headers
Complete Article Headers
X-Google-Thread: 8a75585569,af86fdbf92d5fc75 X-Google-Attributes: gid8a75585569,public,usenet X-Google-NewGroupId: yes X-Google-Language: FRENCH,ASCII Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!feeder.erje.net!newsfeed.straub-nv.de!proxad.net!feeder1-2.proxad.net!cleanfeed3-b.proxad.net!nnrp11-2.free.fr!not-for-mail Date: Sat, 10 Oct 2009 01:10:31 +0200 From: Mickaël Wolff <mickael.wolff@laposte.net> Reply-To: mickael.wolff@laposte.net User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706) MIME-Version: 1.0 Newsgroups: fr.comp.text.xml Subject: Re: [newbie] Validation XSD/XML References: <4acfbdd9$0$31424$426a34cc@news.free.fr> In-Reply-To: <4acfbdd9$0$31424$426a34cc@news.free.fr> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit Lines: 23 Message-ID: <4acfc485$0$9354$426a74cc@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 10 Oct 2009 01:17:26 MEST NNTP-Posting-Host: 78.233.168.158 X-Trace: 1255130246 news-1.free.fr 9354 78.233.168.158:54133 X-Complaints-To: abuse@proxad.net