Required to validate XML on XSD schema. Testing is done using the programming language python 3.1, using the lxml library. When checking an error occurs
lxml.etree.XMLSchemaParseError: complex type 'piecewise.type': 193
XSD scheme referenced:
<xs:complexType name="piecewise.type"> <xs:group ref="piecewise.content"/> <xs:attributeGroup ref="piecewise.attlist"/> </xs:complexType> <xs:element name="piecewise" type="piecewise.type"/>
How to solve this problem? I tried to use the xmllint utility on cygwin, validation is successful. On python, everything collapses when the circuit is connected:
from lxml import etree schema= etree.parse("XML/imsqti_v2p1.xsd") xmlschema = etree.XMLSchema(schema)