I have been using xmlschema to validate parts of an xml as follows
schema = xmlschema.XMLSchema(os.path.join("schemas", "OpenSCENARIO_1_0.xsd"))
validator = schema.create_element("Test", type="Action")
validator.validate(element_to_test)
after 4.0.0 I get the following error:
AttributeError: 'XMLSchema10' object has no attribute 'create_element'
What is the proper way of doing the same thing in version > 4.0.0?