Parsing XML feed die with “Element is already used”

后端 未结 3 823
没有蜡笔的小新
没有蜡笔的小新 2020-12-10 12:08

I\'m trying to parse an XML feed using SimpleXML in Android: http://backend.deviantart.com/rss.xml?type=deviation&q=by%3Aspyed+sort%3Atime+meta%3Aall

Sample here

3条回答
  •  醉梦人生
    2020-12-10 12:55

    It appears that using

    @Element(name = "title", required = false, inLine=true)
    public String title = "";
    

    will solve your problem, as shown here.

提交回复
热议问题