xmllint validation succeeds on invalid input

undream

New Member
Why does xmllint not report validation failure for the following xsd and xml ?t.xsd\[code\]<?xml version="1.0"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:element name="letter"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:pattern value="http://stackoverflow.com/questions/14060308/([a-z])+"/> </xs:restriction> </xs:simpleType></xs:element></xs:schema>\[/code\]t.xml\[code\] <letter></letter>\[/code\]$ ./xmllint --schema t.xsd t.xml\[code\]<?xml version="1.0"?><letter/>t1.xml validates\[/code\]
 
Back
Top