私は2つのJavaクラスを持っています....
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
}
Item オブジェクトを xml に、xml を Item オブジェクトに変換する方法を教えてください。変換には XStream jar を使用しました。複数のアイテム (アイテムのリスト) を xml に格納する必要があります。新しいアイテムを既存のアイテム (xml に保存) に追加するには、JAVA で完全なコーディングを提供してください。