Skip to content

Braking change, how to replicate in version >4.0.0 #451

@vmander76

Description

@vmander76

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions