This is my data class of Kotlin. I'd like to parse RSS but I got a message like 'item' does not have a match in class...
@Root(name = "channel", strict = false)
data class ArticleList(
@ElementList(name = "item", inline = true)
val articleList: List<Article>
)
@Root(name = "item", strict = false)
data class Article(
@Element(name="title")
val title: String
)
Could somebody help me to parse RSS? For example, https://learningenglish.voanews.com/api/zkm-qem$-o
If I want to get all title tags under item tag, how do you write the code?