Hi Apurva, The nillable attribute is only supported on the <mapping>/<structure>/<collection> elements, not on a <value> element of the binding. The reason for this is that nillable generally only makes sense when used with objects that represent some sort of structure, rather than simple values. The only thing I can suggest for your case is to use a custom marshaller/unmarshaller for the value (which is admittedly a pain for such a simple case).
- Dennis Dennis M. Sosnoski SOA and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 apurva mistry wrote: > Hi, > I want to allow xsi:nil="true" in the xml, and for that I added > nillable="true" in the mapping element. But while compiling the > Binding I get a warning " [bind] Warning: Undefined attribute > nillable; on value element". Below is how I tried to use it > > <mapping ....> > <value name="name1" field="name1" usage="optional" nillable="true" /> > </mapping> > > Sample xml - > .......... > <name1 xsi:nil="true"/> > ..... > > > */-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------/* > */A new smarter way of sharing your world with family and friends! Its > secured, so only people you invite will have access to your stuff./* > http://www.myfamilycapsule.com/ <http://www.myfamilycapsule.com/> > > > > > > > ------------------------------------------------------------------------ > Looking for last minute shopping deals? Find them fast with Yahoo! > Search. > <http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping> > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > jibx-users mailing list > jibx-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jibx-users > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users