I think you are looking for the isSetRunFolderStatus method. That will return a Boolean.
That will tell you if the element runFolderStatus exists or not. Richard Butterwood | Senior Analyst/Programmer | Infor | office: 770-418-2000 X 1167 | cell: 678-492-3080 | fax: 770-418-2022 | [EMAIL PROTECTED] -----Original Message----- From: Steffen Vinther Sørensen [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 04, 2006 7:28 AM To: user@xmlbeans.apache.org Subject: How to determine if a value is not there when the return type is a simple type Hi I have a schema like <xs:element name="Run"> <xs:complexType> <xs:sequence> <xs:element name="runfolderstatus" type="xs:long" minOccurs="0" maxOccurs="1"/> </xs:sequence> </xs:complexType> </xs:element> The generated bean gets the methods long getRunfolderstatus(); void setRunfolderstatus(long); I would have expected it to be Long instead of long, so that the getter method can return null if the element is not present. What is the recommended way of detecting if the element is there or not ? -- Med venlig hilsen Steffen Vinther Sørensen @ Logiva A/S mailto:[EMAIL PROTECTED] http://www.logiva.dk Tlf direkte. 87 43 40 75 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]