#read LogPubChannelConfig.xml logpubtype
def get_logpubtype():
log_pub = ElementTree.parse(r"LogPubChannelConfig.xml") #xml文件名
log_pub_node = log_pub.find("channels") #channels是节点
for a in log_pub_node:
print a.attrib['channelName'],a.attrib['channelId'],a.attrib['pubFormatType'] #详细查询的数据
阅读(8700) | 评论(0) | 转发(0) |