Looks
like you need to use a FieldHandler. Just check out the mailing list
archive for an example.
--m
-----Original Message-----
From: AMADOU Vincent [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 7:29 AM
To: [EMAIL PROTECTED]
Subject: [castor-dev] Java to Xml - Inserting an intermediate level in xmlHi,
I want to use Castor to marshall and unmarshall an Java Object into an Xml file, inserting an intermediate level in the xml generated.
To be more precise and clear:
- my Java Class
public class TestCastor {
private String myId;
private String myStreet;
private String myCity;... and the dedicated setter and getter
}
- the xml I want to produce:
<?xml version="1.0"?>
<TestCastor>
<id>1</id>
<address>
<street>1</street>
<city>1</city>
<address>
</TestCastor>- To sum up, my problem is to write the correct mapping.xml file to meet these requirements ..., so I you have any idea ...
Thanks,
Vincent
