Re: [xml] xmllint --nowarning = no information
- From: "Aron Stansvik" <elvstone gmail com>
- To: xml gnome org
- Subject: Re: [xml] xmllint --nowarning = no information
- Date: Wed, 11 Oct 2006 18:28:33 +0200
2006/10/11, Bob Stayton <bobs sagehill net>:
Sure, try this test file with elements out of order:
<?xml version="1.0"?>
<!DOCTYPE doc [
<!ELEMENT doc (a, b*, c*)>
<!ELEMENT a (#PCDATA)>
<!ELEMENT b (#PCDATA)>
<!ELEMENT c (#PCDATA)>
]>
<doc><a>Title element</a><c>indexterm</c><b>regular content</b></doc>
Without --nowarning I get the "expecting" clause:
nowarn.xml:8: element doc: validity error : Element doc content does not
follow
the DTD, expecting (a , b* , c*), got (a c b)
<doc><a>Title element</a><c>indexterm</c><b>regular content</b></doc>
^
With --nowarning I don't get the "expecting" clause:
nowarn.xml:8: element doc: validity error : Element doc content does not
follow
the DTD
<doc><a>Title element</a><c>indexterm</c><b>regular content</b></doc>
I can reproduce.
Aron
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]