Using a existing object will require the use of the Factory attribute for the binding. This is a static method which returns the instance to be worked on.
The original values to be kept will need a set-method rather than the default setter, to check for the null value and not update them. -- Thomas Jones-Low Softstart Services Inc. [EMAIL PROTECTED] JobScheduler for Oracle Ph: 802-398-1012 http://www.softstart.com Tudor Olteanu wrote: > Hi, > > I want Unmarshall to update an existing object instead of creating a new > one and also to not overwrite the exiting values for optional fields > that are missing. > > I've cast my object to IUnmarshallable and then called > unmarshal(UnmarshallingContext) on my instance but, for optional fields > that are missing in xml, unmarshall replace my instance's existing > values with null values. > > Please let me know if there is a solution to preserve the original > values for optional fields that are missing. > > Thanks, > Tudor > > ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users