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>
                                                                     ^

Bob Stayton
Sagehill Enterprises
DocBook Consulting
[EMAIL PROTECTED]


----- Original Message ----- 
From: "Daniel Veillard" <[EMAIL PROTECTED]>
To: "Bob Stayton" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Wednesday, October 11, 2006 2:42 AM
Subject: Re: [xml] xmllint --nowarning = no information


>  Can you reproduce this with a small test ?
>


_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to