Skip to content

First schema item is being ignored #2

Open

Description

@idemax

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.

Activity

  1. changed the title [-]First schema items is being ignored[/-] [+]First schema item is being ignored[/+] on Sep 29, 2017
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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions