Having a similar problem as Vinodh I have a bean which has primitive fields, objects as well an array list of objects. Now I want to marshal this to a skeleton xml, ie without any values. I am getting a blank xml with only the root element. Can this be done using castor? I tried setting the strings to "", it worked but I cant do this, as I want to keep the existing code untoched. I would rather fill in the values in the template xml manually and then unmarshal them into populated objects. Please help
Vinodh Rajaraman (vrajaram) wrote: > > > hi > > Both are Strings . right now am setting them to empty strings " " to > circumvent this issue. > > -----Original Message----- > From: Werner Guttmann [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 28, 2006 9:39 PM > To: dev@castor.codehaus.org > Subject: Re: [castor-dev] Query - marshalling > > What types does the Java member that represents e.g. field1 have ? > > Werner > > Vinodh Rajaraman (vrajaram) wrote: >> >> Hi >> >> I have an object that needs to be marshalled, infact i had >> unmarshalled them using castor, so it has all class descriptors, and > stuff. >> >> while marshalling, i chose to ignore some elements, by that i mean, i >> want that element to be present in the xml file, but value should be >> empty as follows >> >> <root> >> <field1> value <field1> >> <field2></field2> >> >> </root> >> >> I do want that element to appear in the xml file, but i dont want to >> asssociate any value to it, how do i achieve this behavior in Castor >> marshalling. >> >> Cheers >> Vinodh >> > > > > > -- View this message in context: http://www.nabble.com/Query---marshalling-tf2813712.html#a13590344 Sent from the Castor - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email