blob: ebf78ecd92e8e7083805280d7b03d066efd0dd1a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# $Id$
"""Trivial wrapper around lxml.etree.RelaxNG."""
import lxml.etree
class RelaxNG(lxml.etree.RelaxNG):
"""Minor customizations of lxml.etreeRelaxNG."""
def __init__(self, filename):
"""
Initialize a RelaxNG validator from a file.
"""
lxml.etree.RelaxNG.__init__(self, lxml.etree.parse(filename))
|