Take a look at the location attribute.Let me know if that works or no Thanks
- Harjit -----Original Message----- From: Garret Schweitzer [mailto:[EMAIL PROTECTED] Sent: Thursday, July 26, 2007 12:15 PM To: [email protected] Subject: [castor-user] Mapping contained classes in a single element All, I have an XML with a structure that might look like so: <foo> <element_one>something</element_one> <element_two>something else</element_two> <element_three>another thing</element_three> <element_four>more stuff</element_four> <element_five>even more stuff</element_five> </foo> And a class structure like so: Public class Foo { private String onething; private Bar moreStuff; public void SetOneThing (String one) ... public String GetOneThing() .... public void SetMoreStuff (Bar bar); ... public Bar GetMoreStuff(); ... } Public class Bar { private String anotherThing; private String moreThings; ... } So, here's the question: Can I map the XML above... And it's flat, so that it'll create a Foo and fill it? I'm not sure how to map/bind the Bar in the map. Thanks, g Garret Schweitzer --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email This email, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this email is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this email is prohibited. If you have received this email in error, please notify the sender by replying to this message and delete this email immediately. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

