ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject xmlvalidate: check for well-formedness *only*
Date Tue, 19 Dec 2006 14:03:11 GMT
hi all,

nicola mentioned about 3 years ago the same problem:


any progress or workaround on that (for ant stable 1.6.5)?

i'm backing up source and doing sanity checking to make sure the files aren't
fubar, so i thought a simple well-formedness check on all the xml files was in
order. xmlvalidate/build fails with lenient="true" (and failonerror="false") on
the first xml file with a missing dtd, eg:

<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

and no log4j.dtd in the same folder. i've tried various things like pointing it
in the right direction, but that gets tricky when there's no publicId in the
doctype (as above) or the dtd isn't even in local cvs (as it perhaps should be).
i don't really want it to do *anything* with dtds anyway-- a well-formedness
check is quicker (no?) and i thought it a simple test to add to the other data
integrity checks i'm doing.

please let me know if anyone has something to suggest.
thanks in advance,

- p

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message