Looks like none of the fiels made it past .... spamfilters et alias. Can you please inline ?

Werner

suranjan wrote:
I am attaching all the files. This is a prototype.
The bean is having 2 primitives and 1 object.


Werner Guttmann wrote:
Are you using a mapping file at all ? And can you briefly describe your Java object(s) by showing us code fragments ? And finally, how are you marshalling your object(s) (code sample, please).

Werner

suranjan wrote:
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




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

    http://xircles.codehaus.org/manage_email



http://www.nabble.com/file/p13601028/codes.zip codes.zip http://www.nabble.com/file/p13601028/codes.zip codes.zip


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

   http://xircles.codehaus.org/manage_email

Reply via email to