Fork me on GitHub

metadata.xml

Gentoo Mono Handbook
https://devmanual.gentoo.org/ebuild-writing/misc-files/metadata/
mono-xmltool --validate-dtd https://raw.githubusercontent.com/gentoo/dotnet/master/dev-dotnet/referenceassemblies-pcl/metadata.xml
The element 'pkgmetadata' has invalid child element 'herd'. List of possible elements expected: 'maintainer natural-name longdescription slots use upstream'.

repoman -d
checks with xmllint from libxml2
see http://stackoverflow.com/questions/35530009/how-to-validate-metadata-xml-against-dtd-in-gentoo

XSD schema itself is XML too, therefore it can be validated against the W3 DTD like this:
wget -c http://www.gentoo.org/dtd/metadata.dtd
xmllint --noout --dtdvalid http://www.w3.org/2001/XMLSchema.dtd metadata.xsd