【发布时间】:2015-04-07 14:19:37
【问题描述】:
我正在使用 Simple XML 框架,刚刚重命名了一些 XML 布局,现在这些布局似乎不再起作用了。
这是我的 XML:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<orderListReply id="R000000000006">
<order orderid="12" type="outbound" state="available">
<todo>2</todo>
<done>0</done>
<lines>1</lines>
<erporderid>0</erporderid>
</order>
</orderListReply>
这是我的代码类定义:
@Root(name="orderListReply")
public class OrderListReplyTelegram extends Telegram {
@ElementList(name="order", inline=true, required=false)
private List<OrderListItem> orders;
...
这是我得到的错误:
org.simpleframework.xml.core.ElementException:元素“订单”在第 1 行的 nl.minerall.sapphire.pocket.telegrams.OrderListReplyTelegram 类中没有匹配项
【问题讨论】:
标签: simple-framework