Re: [xml] Exit code of xmllint always 0?



I used xmllint a lot in Makefiles - try using the --valid option, I
think you need that to make it return an errorcode on failure.

On Wed, 2002-12-18 at 15:35, Fischer, Oliver wrote:
Hello,

since today I validate all documents before I transform them via 
xmllint. It does a very good job and my documents are now much 
closer to the DTD then before. ;-)

But one small thing bothers me: It seems, that xmllint always 
exits with 0 even if the document not fits the DTD.

Is there a way that it returns in this case another value then 0 
to signal a failure? Would be usefull for my ant and makefiles.

Bye

Oliver
-- 
Sean Middleditch <elanthis awesomeplay com>
AwesomePlay Productions, Inc.





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