2006/10/11, Bob Stayton <[EMAIL PROTECTED]>:
> 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
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to