Re: [xml] xmllint --nowarning = no information



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
bobs sagehill net


----- Original Message ----- From: "Daniel Veillard" <veillard redhat com>
To: "Bob Stayton" <bobs sagehill net>
Cc: <xml gnome org>
Sent: Wednesday, October 11, 2006 2:42 AM
Subject: Re: [xml] xmllint --nowarning = no information


 Can you reproduce this with a small test ?






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]