Relax NG support, C14N

from blog Secret Weblog, | ↗ original
↗ original
Some progress over the last few days:Some progress over the last few days: 've added basic Relax NG support to lxml.'ve added basic Relax NG support to lxml. lxml.etree introduces a new class, lxml.etree.RelaxNG. The class can be given an ElementTree object to construct a Relax NG validator:lxml.etree introduces a new class, lxml.etree.RelaxNG. The class can be given an ElementTree object to construct a Relax NG validator: >>> f = StringIO(''' &gt;&gt;&gt; f = StringIO(''' ... <element name="a"; xmlns="http://relaxng.org/ns/structure/1.0" ... &lt;element name="a"; xmlns="http://relaxng.org/ns/structure/1.0" ... <zeroOrMore> ... &lt;zeroOrMore&gt; ... <element...... &lt;element...