While trying to execute the above xsd. I am getting this error. I have xmlschema 1.0.14 version installed. Could you please help identify why I am seeing this issue. >>> my_schema = xmlschema.XMLSchema('/home/centos/base.xsd') Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/xmlschema/validators/schema.py", line 360, in __init__ self.check_schema(root, self.namespaces) File "/usr/local/lib/python3.6/site-packages/xmlschema/validators/schema.py", line 674, in check_schema raise error xmlschema.validators.exceptions.XMLSchemaChildrenValidationError: failed validating with XsdGroup(model='sequence', occurs=[1, 1]): Reason: Unexpected child with tag 'xs:assert' at position 4. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.6/site-packages/xmlschema/validators/schema.py", line 362, in __init__ self.parse_error(e.reason, elem=e.elem) File "/usr/local/lib/python3.6/site-packages/xmlschema/validators/xsdbase.py", line 168, in parse_error raise error xmlschema.validators.exceptions.XMLSchemaParseError: Unexpected child with tag 'xs:assert' at position 4:
@VilasMahendrakarBeingVeracious5 жыл бұрын
@Satish: Were you able to resolve above errors? I am stuck similarly. Please help if you can