Is this the correct way to unmarshal into an existing object instance? My 
object ("this" below) is defined as a <mapping> element in the binding XML 
file.

   IBindingFactory bfact =
              BindingDirectory.getFactory (this.getClass ());
   IUnmarshallingContext uctx = bfact.createUnmarshallingContext ();

   Reader reader = new FileReader (xmlFileName);
   uctx.setDocument (reader);
   ((IUnmarshallable)this).unmarshal (uctx);

This seems to work, but I just want to be sure.

If correct, is this documented somewhere?

If incorrect, what's a better suggestion?

Thanks much!
David Citron

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to