delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/07/01/15:40:08

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 1 Jul 2003 20:40:02 +0100
From: Elfyn McBratney <elfyn AT cygwin DOT com>
X-X-Sender: elfyn AT ellixia
Reply-To: cygwin AT cygwin DOT com
To: Eric Hanchrow <erich AT votehere DOT net>
cc: cygwin AT cygwin DOT com
Subject: Re: xmllint -dtdvalid fails to report invalid XML
In-Reply-To: <0102AE2D3200D4118AE20050DACDB02EDF19F0@CONGRESS>
Message-ID: <Pine.CYG.4.55.0307012037450.2836@ellixia>
References: <0102AE2D3200D4118AE20050DACDB02EDF19F0 AT CONGRESS>
Mail-Followup-To: cygwin AT cygwin DOT com
MIME-Version: 1.0

On Tue, 1 Jul 2003, Eric Hanchrow wrote:

> 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
> 	<!ELEMENT Foo (Bar+)>
> 	<!ELEMENT Bar (#PCDATA)>
> 	10:25:42 [erich AT alpha examples]$ cat /tmp/tiny.xml
> 	<!DOCTYPE Foo PUBLIC "" "/tmp/tiny.dtd">
> 	<Foo>
> 	</Foo>
>
> 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 ()
> 	</Foo>
> 	     ^
>
> 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.

Sorry, I noticed your note earlier but had to rush off for a doctors
appointment. I was about to release updated packages, but I guess that'll
have to wait now. I'll look into it.

Elfyn
(Cygwin LibXML2 Maintainer)
-- 


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019