有谁能帮助创建一个Kotlin数据类,以便与Retrofit和Simplexml转换器一起使用,用于这个看似简单的xml吗?
<texts>
<text id="3">
<title>Veðurhorfur á höfuðborgarsvæðinu</title>
<creation>2022-11-03 10:20:30</creation>
<valid_from>2022-11-03 12:00:00</valid_from>
<valid_to>2022-11-05 00:00:00</valid_to>
<content>Norðlæg </content>
</text>
<text id="6">
<title>Veðurhorfur</title>
<creation>2022-11-03 08:41:53</creation>
<valid_from>2022-11-05 12:00:00</valid_from>
<valid_to>2022-11-10 12:00:00</valid_to>
<content>Austan- </content>
</text>
</texts>
1条答案
按热度按时间laximzn51#
基于this article,应执行以下操作: