Using minOccurs="0" on element within sequence does not accept if element is 
empty...
-------------------------------------------------------------------------------------

                 Key: AXIS2-3409
                 URL: https://issues.apache.org/jira/browse/AXIS2-3409
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: adb
    Affects Versions: 1.3
         Environment: Windows XP,
            Reporter: Lars Kruse Pedersen


We have the following XSD...

----------------- snippet start -----------------------

<xs:complexType name="AngivelseAftaleForholdKontroller_OType">
  <xs:sequence>
    <xs:element ref="fase2:Kontekst" /> 
      <xs:sequence>
         <xs:element name="VirksomhedSamling" minOccurs="0">
           <xs:complexType>
             <xs:sequence>
               .
               . more stuff
               .
            </xs:sequence>
          </xs:complexType>
       </xs:element>
      </xs:sequence>
    </xs:sequence>
  </xs:complexType>

----------------- snippet end -----------------------

When we receive XML contents that has only the Kontekst element, but no 
VirksomhedSamling element, ADB throws an exception because it expects the 
VirksomhedSamling element, but according to W3 it is perfectly legal to have a 
minOccurs="0" on an element inside a sequence!


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to