You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Thorsten Mauch <ma...@imkenberg.de> on 2002/02/22 23:24:35 UTC

unmarshalling to existing Object with Castor

Hi All
I working currently in the integration between
Chiba XForms, Castor and Cocoon.
Maybe the follwing question I send to the castor maillist
is usefull for all who are interessting in XML
Databinding.

> I'm trying to unmarshal to an existing object. As long as it's a flat
object it's woks fine. 
> But if the root element contains a collection it fails. For all elements
in the XML doc
>  new objects are created. This is a reasonable behavior if we expect that
the root 
> object be newly created. I like to improve the unmarshaling to an existing
object, 
> so that also contained objects are restored correctly. My idea is to sue
the identity 
> to find out if the Object already exists. If so now new Object is created.
> Does you have any hints how to make it?
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org