如
<Body>
<TransferInfo>xxxx </TransferInfo>
<TransferInfo>xxxx </TransferInfo>
</Body>
@XmlRootElement(name = "Body")
public class ResultNofityBody {
private List<ResultNofityTransferInfo> list;
@XmlElements({ @XmlElement(name = "TransferInfo", type = ResultNofityTransferInfo.class) })
public List<ResultNofityTransferInfo> getList() {
return list;
}
public void setList(List<ResultNofityTransferInfo> list) {
this.list = list;
}
}