Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to parse "mixed" attribute in complexType #2

Open
marcelbuesing opened this issue Aug 14, 2019 · 1 comment
Open

Failed to parse "mixed" attribute in complexType #2

marcelbuesing opened this issue Aug 14, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@marcelbuesing
Copy link

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
@progval progval added the bug Something isn't working label Aug 14, 2019
@progval
Copy link
Owner

progval commented Aug 14, 2019

I realized a few weeks ago that this crate has a major issue of type confusion, this might be the root cause.
I'm in the middle of a large refactoring to fix that issue, which may solve this one as well; but it will take time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants