Subject: adding an xml validate target
To: None <email@example.com>
From: Jan Schaumann <firstname.lastname@example.org>
Date: 04/23/2006 11:52:00
Content-Type: text/plain; charset=us-ascii
I'd like to add a general target 'make valid' or 'make checkxml' or
something along those lines that validates the XML of a given file
without actually generating any output.
The options I've found are using tidy or xmllint.
With tidy, I can do
tidy -qe -xml <infile.xml>
However, this will not resolve entities that are included from other
files (such as man-refs.ent and developers.ent).
With xmllint, I have not yet found the right invocation, but I presume
it would be something like
xmllint --noout --valid --dtdvalid .../share/xml/website-netbsd.dtd <infile>
However, there are some problems: no matter what I do, I always get a
warning "failed to load external entity ...", even if I pass "--nonet".
While playing around with this, I notice that the
=2E/share/xml/website-netbsd.dtd and all XML files point the DTD to
This does simply not exist. The path should be
You can blame it all on the Internet.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (NetBSD)
-----END PGP SIGNATURE-----