[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    [jira] Created: (XMLBEANS-256) XmlObject.validate() validates fine
From:       "Erik Godding Boye (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date:       2006-03-23 10:59:02
Message-ID: 615754176.1143111542559.JavaMail.jira () ajax
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic