I made some tests with the small test
case and xml and dtd files at
http://git.gnome.org/browse/libxml++/tree/examples/dom_parser The file example_invalid.xml does not validate against example.dtd (deliberate errors). xmllint example_invalid.xml --dtdvalid does not print error messages. xmllint example_invalid.xml --dtdvalid example.dtd and xmllint --dtdvalid example.dtd example_invalid.xml do print error messages. It seems that xmllint does not validate unless you specify the name of the dtd file on the command line. What happens if you try xmllint test.xml --dtdvalid myapp.dtd or xmllint --dtdvalid myapp.dtd test.xml ? Kjell 2012-10-03 02:16, Sanne Graaf skrev: Hello everybody, |