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

First schema item is being ignored #2

Open
idemax opened this issue Sep 29, 2017 · 0 comments
Open

First schema item is being ignored #2

idemax opened this issue Sep 29, 2017 · 0 comments

Comments

@idemax
Copy link

idemax commented Sep 29, 2017

Hi,

I'm facing a bug, the first element of my schema is being ignored by the parser. By schema example:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
    <xs:element name="Administration">
        <xs:annotation>
            <xs:documentation>Contains administrative data</xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="Errors" minOccurs="0"/>
                <xs:element ref="Error" minOccurs="0"/>
                <xs:element ref="BookStatus" minOccurs="0"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <xs:element name="BookStatus">
        <xs:annotation>
            <xs:documentation>Contains status related data</xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="Reason" maxOccurs="unbounded"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
<!-- ... -->

If I switch Administration with BookStatus then BookStatus is missing.

Thanks.

@idemax idemax changed the title First schema items is being ignored First schema item is being ignored Sep 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant