I have two java classes....
public class Item {
private int itemIndex;
private String containerType;
private Map<String, List<String>> contentType;
private String status;
private List<String> remark;
// their getters and setters
}
Please tell me how to convert Item object to xml and xml to Item object? I have used XStream jar for conversion. I need to store multiple Item (list of items) in xml. Please provide full coding in JAVA to add a new item with existing items (stored in xml).