I know about the default value but, as Alexander also stated, is somehow awkward and I'll try to avoid it.
Instead, I want to know after the unmarshall is done, the list of fields that were received (populated) in the XML. I'll open a separate thread for this. Thanks for your answers Thomas. Thomas Jones-Low wrote: > In the mapping from the example in the message you posted: > > <binding> > <mapping class="Test" name="test"> > <value name="value" field="value" usage="optional" style="attribute"/> > </mapping> > </binding> > > In the example, the expected text in the Test.value string should be > "default value", but is coming up as null because of the mapping. If you > change the mapping to be as follows, you will get the results desired. > > <binding> > <mapping class="Test" name="test"> > <value name="value" field="value" usage="optional" > style="attribute" default="default value"/> > </mapping> > </binding> > > As Alexander notes in the follow up message: > > > This works, but is somewhat awkward as i have > > to duplicate the default value in the binding.xml > > and in the Java class given that I want to have > > objects created directly (i.e. "new MyClass()") > > also initialized with proper default values. > > ------------------------------------------------------------------------- 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