[ http://issues.apache.org/jira/browse/XMLBEANS-256?page=all ]
Erik Godding Boye resolved XMLBEANS-256:
----------------------------------------
Resolution: Invalid
> XmlObject.validate() validates fine when missing attribute declared with
> use="required"
> ---------------------------------------------------------------------------------------
>
> Key: XMLBEANS-256
> URL: http://issues.apache.org/jira/browse/XMLBEANS-256
> Project: XMLBeans
> Type: Bug
> Components: Validator
> Versions: Version 2.1
> Environment: XMLBeans 2.1.0, JDK/JRE 1.5.0_06-b05, WinXP SP2
> Reporter: Erik Godding Boye
>
> I have defined the following element type:
> <xs:complexType name="displayName">
> <xs:complexContent>
> <xs:extension base="name">
> <xs:attribute name="index" type="xs:boolean" use="required">
> <xs:annotation>
> <xs:documentation>Boolean , Indicates if the element
> should be indexed for search.</xs:documentation>
> </xs:annotation>
> </xs:attribute>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> When creating an element of this type it validates fine using
> XmlObject.validate() - even if the index attribute is missing from the
> element.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]