Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <0102AE2D3200D4118AE20050DACDB02EDF19F0@CONGRESS> From: Eric Hanchrow To: "'cygwin AT cygwin DOT com'" Subject: xmllint -dtdvalid fails to report invalid XML Date: Tue, 1 Jul 2003 10:54:14 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" This is libxml2 2.5.7. Here's the input DTD, and the input XML: 10:21:47 [erich AT alpha examples]$ cat /tmp/tiny.dtd 10:25:42 [erich AT alpha examples]$ cat /tmp/tiny.xml Here's xmllint working properly (with the `-valid' switch): 10:20:52 [erich AT alpha examples]$ xmllint -noout -valid /tmp/tiny.xml /tmp/tiny.xml:2: validity error: Element Foo content does not follow the DTD Expecting (Bar)+, got () ^ Here's xmllint failing, by not reporting an error: 10:20:45 [erich AT alpha examples]$ xmllint -noout -dtdvalid /tmp/tiny.dtd /tmp/tiny.xml 10:20:46 [erich AT alpha tmp]$ echo $? 0 I could not repro this problem on Linux, using the same version of libxml2. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/