Skip to content
Advertisement

Tag: python-xmlschema

Extracting enumeration values from an XML Schema with Python

From an XML Schema using xmlschema package, I extracted an XsdEnumerationFacets like the one below How can I extract the possible values from it? (‘OP1’, ‘OP2’, ‘OP3’, ‘OP3’, ‘OP4’ and so on in this case). I had one idea to convert it into string (str(enum)), and parse it, but if it’s long, the last elements are not included. (I have

Advertisement