I have a variable (list) of type ArrayList[] and I want to save it in XML. I tried JAXB, but it saves only the "" String (the repetition of " is equal to list.length) and no items in ArrayLists. If I tried the 2d array it works fine. If I tried ArrayList, it works also fine. How can I solve this problem?
My code is similar to:
@XmlRootElement
public class SomeClass {
@XmlElement(name="part")
private final ArrayList<Object>[] list;
... constructor, which fills the list variable
}
Can someone tell me how to do this? Please.