Adam Ratcliffe wrote:
Is it possible to use an existing object as the root object for an unmarshalling operation?
In my binding file I have a top-level mapping from the document root element to a context object. I'd like to create this object outside of the binding framework and set its properties as I unmarshall the XML input document. This would save needing to recreate the context object everytime I perform an unmarshalling operation.
Hi Adam,
You can actually do this now for the top-level element. Just create the object and cast it to IUnmarshallable, then call the unmarshal method passing your unmarshalling context.
Doing it for nested objects is trickier, though you can play games with factory-method and such to make it work. I'm trying to implement the object creation cleanly in beta 4 so that an existing instance will always be used rather than creating a new one.
- Dennis
------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ jibx-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jibx-users
