Is there a way to always generate either an attribute or an element without having to 
map a field?

Eg.,

Class foo {

String name;

public String getName() { return name;}

public void setName(String aName) {name = aName;}

}

I'd like to be able to generate -

<foo>

<name>blah</name>

<bar>zoo</bar>

</foo>

i.e., the element <bar> should always be generated with the content zoo - even though 
foo does not have a field for bar.

Any ideas?

Thanks a lot!

 

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-user

Reply via email to