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

List:       xmlbeans-dev
Subject:    [jira] [Closed] (XMLBEANS-490) XML tag is not created for [minOccurs="1" and nillable="false"]
From:       "Yuriy Glushanin (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date:       2012-09-22 7:53:08
Message-ID: 586415284.110870.1348300388541.JavaMail.jiratomcat () arcas
[Download RAW message or body]


     [ https://issues.apache.org/jira/browse/XMLBEANS-490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]

Yuriy Glushanin closed XMLBEANS-490.
------------------------------------

    Resolution: Not A Problem

I should use empty string instead of NULL:

    trackingInformation.setNotificationId("");

Thank you very much!

P.S. Perhaps, method addNotificationId() should be added in the future XMLBeans \
releases.  
> XML tag is not created for [minOccurs="1" and nillable="false"]
> ---------------------------------------------------------------
> 
> Key: XMLBEANS-490
> URL: https://issues.apache.org/jira/browse/XMLBEANS-490
> Project: XMLBeans
> Issue Type: Bug
> Affects Versions:  Version 2.3
> Reporter: Yuriy Glushanin
> 
> Hello all,
> My XSD scheme:
> <xs:element name="Info">
> <xs:complexType>
> <xs:sequence minOccurs="1" maxOccurs="1">
> <xs:element minOccurs="1" maxOccurs="1" name="Name" type="xs:string"/>
> <xs:element minOccurs="1" maxOccurs="1" name="Value" type="xs:string"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> XML message when Name is "test" and Value is NULL:
> <Info>
> <Name>test</Name>
> <Info>
> I expect empty <Value /> tag in the result:
> <Info>
> <Name>test</Name>
> <Value />
> <Info>
> Why empty <Value /> tag was not created?
> Best regards,
> Yuriy.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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