hi,

XMLBeans seems to ignore the minOccurs="0" attribute on xs:any, it
always expects an element.... very strange:


i have the following schema:
...
<xs:element name="CAdata" minOccurs="0" maxOccurs="1">
                <xs:complexType>
                    <xs:sequence>
                        <xs:any namespace="##other"
processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
                    </xs:sequence>
                    <xs:attribute name="CAname" type="xs:string"
use="required"/>
                    <xs:attribute name="value" type="xs:string"
use="optional"/>
                 </xs:complexType>
            </xs:element>
...

and the following instance:

junit.framework.AssertionFailedError: EntityManagerException 'XML Format
of KeyCertPair is not valid.
error: cvc-complex-type.2.4d: Expected element(s) in element
[EMAIL PROTECTED]://www.zertificon.com/erpconnector/v1/entity_management

<X>
...
  <CAdata value="ich bin die id" CAname="testCA"/>
...
</X>

And .validate() fails with

'XML Format of KeyCertPair is not valid.
error: cvc-complex-type.2.4d: Expected element(s) in element
[EMAIL PROTECTED]://www........




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

Reply via email to