태그 내에는 fanart, boxart, banner, screenshot, clearlogo와 같은 다양한 유형의 조합이 반환됩니다.혼합 목록을 SimpleXML로 구문 분석
SimpleXML Framework를 사용하여이를 개별 목록으로 파싱하는 가장 좋은 방법은 무엇입니까? List<FanArt>
, List<BoxArt>
, List<Banner>
등을 원합니다. 사이트의 examples은이 상황을 다루지 않는 것 같습니다. 나는 몇 가지 다른 아이디어로 더듬었지만, SimpleXML Framework가이를 직접적으로 처리 할 수 있는지 확신 할 수 없다. org.simpleframework.xml.core.PersistenceException : 이름 필드 'clearLogos'의 '이미지'의 중복 주석 .....
@ElementList(name = "Images", entry = "clearlogo")
private List<ClearLogo> clearLogos;
@ElementList(name = "Images", entry = "boxart")
private List<BoxArt> boxart;