blob: 1478b66f2948485c3ea517d954ed0ca666a81fe6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# $Id$
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))
|