我需要使用来自像这样的 xml 的 simplexml 包来定义我的 android“Estates”类:
String xml = "
<?xml version="1.0" encoding="utf-8"?>
<estates>
<000>
<id>12345678</id>
<description>estate one</description>
</000>
<001>
<id>23456789</id>
<description>estate two</description>
</001>
</estates>
";
Estates estates = serial.read(Estates.class, xml);
我应该如何定义我的班级?
应该命名为“Estates”还是“Estate”?
抱歉,但我对 simplexml 还没有感觉... ;-(