Hi,
I don't think there's a way to achieve what you are looking for on the
marshalling side.
Cheers
Werner
ripcord wrote:
> Hi,
>
> I am working on an application that uses an xsd schema to unmarshall an xml
> file, and then marshall it back to xml when the user has finished updating
> the information.
> However, there are diffrent versions of this application available to the
> user - each using slightly different schemas.
> I was wondering is it possible for the different versions of my application
> to use the same xml file for castor un/marshalling? I know the unmarshaller
> has setIgnoreExtraElements() and setIgnoreExtraAttributes(). This means the
> different versions of my app can read in the same xml file. However, when
> they write out the xml file, they will remove any existing elements that
> were previously ignored! Is there any way to tell the marshaller to just
> "overwrite" the elements in the xml file with the objects, and leave any
> other elements alone?
>
> Thanks! I've been on this for ages and can't find a solution!
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email