From 2f75d0e2f9ac890bb0150ee97c8ff9af5c915e62 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Mon, 21 Nov 2005 16:38:20 +0000 Subject: call out to xmllint until lxml does error processing correctly (Logical change 1.362) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1510 ce84e21b-d406-0410-9b95-82705330c041 --- src/sbin/ValidateBcfg2Repo | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/sbin/ValidateBcfg2Repo b/src/sbin/ValidateBcfg2Repo index 26a89abea..49b87c5c4 100644 --- a/src/sbin/ValidateBcfg2Repo +++ b/src/sbin/ValidateBcfg2Repo @@ -5,6 +5,7 @@ __revision__ = '0.7.3' from glob import glob from lxml.etree import parse, XMLSchema +from os import system from sys import argv from ConfigParser import ConfigParser, NoSectionError, NoOptionError @@ -37,6 +38,7 @@ if __name__ == '__main__': datafile = parse(open(filename)) except SyntaxError: print "%s ***FAILS*** to parse \t\t<----" % (filename) + system("xmllint %s" % filename) continue except IOError: print "Failed to open file %s \t\t<---" % (filename) @@ -46,3 +48,4 @@ if __name__ == '__main__': print "%s checks out" % (filename) else: print "%s ***FAILS*** to verify \t\t<----" % (filename) + system("xmllint --schema %s %s" % (schema % schemadir, filename)) -- cgit v1.2.3-1-g7c22