Android, org.simpleframework.xml Persistence Exception, Element 'foo' is already used

后端 未结 1 1462
梦如初夏
梦如初夏 2021-01-11 11:43

I am using the org.simpleframework.xml to handle some xml tasks for an android application and am running into the following error which I cannot figure out.



        
相关标签:
1条回答
  • 2021-01-11 11:49

    Try to annotate your AlbumList class this way:

    @Root
    public class AlbumList {
        @ElementList(entry="album", inline=true)
        private List<Child> albums;
    
        public List<Child> getAlbums() {
            return albums;
        }
    }
    
    0 讨论(0)
提交回复
热议问题