Re: [xml] xmllint: validating a document that doesn't specify a DTD
- From: Daniel Veillard <veillard redhat com>
- To: Murray Cumming <murrayc murrayc com>
- Cc: xml gnome org
- Subject: Re: [xml] xmllint: validating a document that doesn't specify a DTD
- Date: Tue, 17 Nov 2009 18:31:10 +0100
On Tue, Nov 17, 2009 at 05:03:41PM +0100, Murray Cumming wrote:
On Tue, 2009-11-17 at 14:24 +0100, Daniel Veillard wrote:
On Tue, Nov 17, 2009 at 01:33:44PM +0100, Murray Cumming wrote:
Should I be able to validate an XML document (such as a .glade file)
that has no DOCTYPE line, and therefore doesn't specify a DTD?
When I try it with xmllint, I get this error
validity error : Validation failed: no DTD found !
even when I have specified a local DTD with --dtdvalid.
Works for me with the version from git head:
Thanks. I was actually using
xmllint --valid --dtdvalid mydtd.dtd mydoc.xml
So is --dtdvalid an alternative to --valid rather than a way of using
--valid?
and alternative, as DTD validation as defined in the XML-1.0 spec
is --valid i.e. validating as parsing based on DOCTYPE contained in
the document, and --dtdvalid is just a different kind of validation
closely related, but certainly different, and in subtle case you may
see different results (but in general it will be the same !)
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel veillard com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]