[xml] using --stream with xmllint and DTD validation



I have a document and an associated DTD - the XML document has a DTD error in it, but is otherwise correct.

If I use:

    xmllint --postvalid --dtdattr /foo.xml

then an error message is displayed, as expected.

If I use:

    xmllint --stream --postvalid --dtdattr /foo.xml

then no error message is displayed.  The return value ($?) is also 0.

Does --stream turn off DTD validation?




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