* @param xmlstr
* @return
* @throws DocumentException
*/
public static WxMsgEventEntity getMsgEvent(Element ele) throws DocumentException {
WxMsgEventEntity result = msgEntityFactory(WxMsgEventEntity.class, ele);
result.setEvent(strVal(ele, "Event"));
if (ele.elementText("EventKey") != null) {
result.setEventKey(strVal(ele, "EventKey"));
}
if (ele.elementText("Ticket") != null) {
result.setEventKey(strVal(ele, "Ticket"));
}
return result;
}