Menu

Help on reading a xsd.

Help
2017-07-19
2017-07-19
  • David Widman

    David Widman - 2017-07-19

    I am trying to generate a py class from the xsd in the gist: https://gist.github.com/c0h1b4/cd6aeccf0208d64f863a943a40b4c732

    I am getting the following error:

    pyxb.exceptions_.SchemaValidationError: Value constraint on element {http://www.tce.sp.gov.br/audesp/xml/tagcomum}TipoTAditivoOutros with non-simple content

    The specific item is this:

        <xs:complexType name="TAditivoOutros_t">
          <xs:sequence>
                <!-- 14 - Outros  -->
             <xs:element name="TipoTAditivoOutros" fixed="14" minOccurs="1" maxOccurs="1"/>
             <xs:element name="DescricaoTAditivoOutros" type="tag:StringAte100_t" minOccurs="1" maxOccurs="1"/>
          </xs:sequence>
       </xs:complexType>
    

    Anyone can help me on generating the py file for this XSD?

    Thanks!
    David

     
  • Peter A. Bigot

    Peter A. Bigot - 2017-07-19
     

Log in to post a comment.