Skip to content

Failed to parse "mixed" attribute in complexType #2

Description

@marcelbuesing

I run in the following error when adding mixed="false" in the test_parser.rs.

const PERSON_XSD: &'static str = r#"
 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="foo">
   <xs:element name="person">
     <xs:complexType abstract="false" mixed="false">
       <xs:sequence>
         <xs:element name="name" type="xs:string" />
         <xs:element name="firstname" type="xs:string" />
         <xs:element name="birthdate" type="xs:date" />
       </xs:sequence>
     </xs:complexType>
   </xs:element>
 </xs:schema>"#;
thread 'test_parser::generated_parses_person_xsd' panicked at 'Could not parse mixed="false", name=StrSpan("complexType" 122..133 -  
  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="foo">
    <xs:element name="person">
      <xs:complexType mixed="false">
        <xs:sequence>
          <xs:element name="name" type="xs:string" />
          <xs:element name="firstname" type="xs:string" />
          <xs:element name="birthdate" type="xs:date" />
        </xs:sequence>
      </xs:complexType>
    </xs:element>
  </xs:schema>)', xml-schema/src/parser.rs:2606:5

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions