Hi,
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
