Hi,

can you please elaborate a bit more on what you are trying to do ? It simply is not clear to me what you are trying to achieve.

A few observations:

a) In order to be able to process the list of items in code, you first need to unmarshal from the XML (using Unmarshaller). b) Once you've got your object (instance) hierarchy, you can modify the list's content using any of the methods of java.util.List. c) Once you are done with your modifications, simply marshal your object instance(s) to XML.

In your question you are referring to 'and not overwrite the existing content'. That statement does not make any sense to me.

Regards
Werner

Chayssiv wrote:
Hi, I have an xml file generated by marshaling a java class (using Castor
mapping). The class contains a list of items. As and when the list gets
filled up I would like to APPEND the new data in the class to the already
marshaled xml file (and not overwrite the existing contents of the marshaled
xml file). Can this be done using Castor? If yes how can it be achieved?
Thanks.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to