[xml] validation problem



Hi,

I've a problem with libxml2 not detecting some validation errors.

xmllint --valid --noout test.xml

With libxml2 2.5.1, windows: no error.
With libxml2 2.4.23, cygwin: 

test13.xml:9: validity error: Element test content doesn't follow the DTD
Expecting (a* , b*), got (b a )
</test>
      ^

It may be a problem with my windows build, but I've no way to check...

-sbi

<!DOCTYPE test [
<!ELEMENT test (a*,b*)>
<!ELEMENT a EMPTY>
<!ELEMENT b EMPTY>
]>
<test>
    <b/>
    <a/>
</test>




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