Skip to content

Instantly share code, notes, and snippets.

@hoefling
hoefling / schema.py
Created May 6, 2020 19:48 — forked from miikka/schema.py
Using Hypothesis to generate XML based on RELAX-NG
import string
from lxml import etree
from lxml.etree import QName
from lxml.builder import E
from hypothesis import strategies as st
NS = "http://relaxng.org/ns/structure/1.0"