sorry, should've been more clear ...
nothing even that complicated--i've just got something like this:
----------------------------------
public class book {
private String title;
private Author author;
public File toXML() {
...
}
}
----------------------------------
private class Author {
private String name;
}
----------------------------------
so basically, i want book.toXML() to create an xml document that looks
like the following:
<book>
<title>Some Title</title>
<author>
<name>Some Name</name>
</author>
</book>
castor has been ignoring my author attribute ...
do i need to use a mapping file?
thanks.
-----Original Message-----
From: Arnaud Blandin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 12:13 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] marshalling nested objects
Hi Paul,
What do you mean by nested object? Do you mean inner classes?
Can send us a test case that demonstrates what you try to achieve?
Thanks,
Arnaud
> -----Original Message-----
> From: paul brockmeyer [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 24, 2002 8:32 AM
> To: [EMAIL PROTECTED]
> Subject: [castor-dev] marshalling nested objects
>
> I'm trying to marshall a Java object into XML with castor 0.9.3.9.
>
> This object has a nested object, which I'd also like to appear in the
xml.
> Is there a way to do this with castor? Hate to ask, but if not does
> anyone
> know of a similar Marshalling tool that provides this functionality?
>
> Thanks.
>
> Paul
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev