I have got 2 Classes : A and Test, that are defined in diffenent .java-files. Class Test as a field of type A. Now I need to be able to marshall/unmarshall both these classes, so I would need to put an XMLRootElement to both classes. Is it possible? Or do I need some wrapper for it? Coudl not find anything in Google for it.
Greets, Jeff
It certainly is possible and you don't need any sort of wrapper. Here's an example:
ItemA.java
ItemB.java
Proof this works