Hi Josh, The format attribute is only used when you're using a non-default conversion for the value type. The section of the binding tutorial on serializer/deserializers mentions this: http://jibx.sourceforge.net/tutorial/binding-extend.html#serdeser ("The third way of defining custom conversions...). There's generally not any reason to use this unless you are using different text representations for the same types of values within the XML (so if you wanted to use the dollars-and-cents conversion in the Figure 20 tutorial example for some of your int values, and didn't want to write out serializer="..." and deserializer="..." in each place where this was done, you could instead give it a name and just refer to it using format="...").
- 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 Josh wrote: > Hello, > > Looking through the examples, it is unclear when the "format" > attribute is needed on the <value> element. For example, in one of > the online examples, zip is mapped to an Integer and no "format" > attribute was required. When would a format attribute be required? > > Regards, > > Josh > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ------------------------------------------------------------------------ > > _______________________________________________ > jibx-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jibx-users > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ jibx-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jibx-users
