You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Erik Godding Boye (JIRA)" <xm...@xml.apache.org> on 2006/03/23 11:59:02 UTC
[jira] Created: (XMLBEANS-256) XmlObject.validate() validates fine
when missing attribute declared with use="required"
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] Resolved: (XMLBEANS-256) XmlObject.validate() validates fine
when missing attribute declared with use="required"
Posted by "Erik Godding Boye (JIRA)" <xm...@xml.apache.org>.
[ 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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org