Re: Xmlbeans errors for empty int tag

2010-03-24 Thread Soumya
) at org.apache.xmlbeans.impl.values.XmlObjectBase.isNil(XmlObjectBase.java:575) Any more suggestions friends? Regards, SSP From: Jacob Danner jacob.dan...@gmail.com To: user@xmlbeans.apache.org Sent: Tue, 23 March, 2010 6:39:42 PM Subject: Re: Xmlbeans errors for empty int tag have you tried adding nillable

RE: Xmlbeans errors for empty int tag

2010-03-24 Thread Wing Yew Poon
: Wednesday, March 24, 2010 4:05 AM To: user@xmlbeans.apache.org Subject: Re: Xmlbeans errors for empty int tag Hi Jacob, Yes I tried configuring it as nillable=true today. And I tried to check if(item.xgetFileId()!=null item.xgetFileId().isNil()) { /// } But once again the isNil() now threw

Xmlbeans errors for empty int tag

2010-03-23 Thread Soumya
Hello all, I am using xmlbeans 1.0.4 and have a strange issue at hand. We have an old webservice which was documented in DTD and to use advanced xmlbeans features we decided to write an xsd for it and use it at another place to send/get WS calls. Kindly note the xsd is used only at client

Re: Xmlbeans errors for empty int tag

2010-03-23 Thread Jacob Danner
have you tried adding nillable=true to the file_id element. I believe this makes the type the Java Wrapper type (Integer in this case). Otherwise to check the existence of the element you could try xpath, or using the xmlcursor apis and seeing if you can navigate to the element. HTH, -jacobd On