From 2d5c53975e6ddaec9ac3d49a70278fcdd584273d Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Wed, 4 Jul 2007 05:02:00 +0000 Subject: Comment svn path=/scripts/rpki/ipaddrs.py; revision=720 --- scripts/rpki/relaxng.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/rpki/relaxng.py') diff --git a/scripts/rpki/relaxng.py b/scripts/rpki/relaxng.py index 21f6d2b7..a4a6c00d 100644 --- a/scripts/rpki/relaxng.py +++ b/scripts/rpki/relaxng.py @@ -3,6 +3,10 @@ import os def relaxng(xml, rng): + """ + Validate a chunk of xml against a RelaxNG schema. + """ + i, o = os.popen4(("xmllint", "--noout", "--relaxng", rng, "-")) i.write(xml) i.close() -- cgit v1.2.3